;ò S éBc@s dkZdkTdkTdklZdklZdklZdkl Z l Z dk l Z dk l Z dk lZd k lZd klZdkZd klZd klZd klZdklZdklZlZdklZdkl Z dk!l"Z"dk#l#Z#gZ$ye%Wne&j odZ%dZ'nXeddƒZ(eddƒZ)dei*fd„ƒYZ+ee+ƒe+i,Z-ddfZ.dS(N(s*(sSchema(sMetadataSchema(sIExtensibleMetadata(s DisplayListsshasattr(slog(slog_exc(sBLATHER(s deprecated(sconfig(saq_base(sClassSecurityInfo(s Unauthorized(sDateTime(sInitializeClasssDTMLFile(sCMFCorePermissions(s getToolByName(s_dtmldir(sComputedAttributeiiièiÄ sExtensibleMetadatac$BsåtZdZeZeƒZeedddddddde dd d e d d d fdddfdddffƒde ddddddddƒƒe ddd ddd e dedd!dd"dd#ddƒƒed$dd%d d dd&dedd&d$d'dd(dd)ddƒƒe d*dd+dedd+dd,d$d-dd.ddƒƒe d/dd0dedd0dd1d2d3d$d4dd5ddƒƒed6dd7d8e dedd9d$d:dd;dd<ddƒƒed=dd>d8e dedd?d$d@ddAddBddƒƒedCddDdeidEdFd dGde ddDddHddIddƒƒedJddKdeddLd$dMddNddOddƒƒf ƒeedPddQddRdEed8e dSe dTdUdVdWdeddXd$dYddZdd[ddd\hd]d^<d_d^<ƒƒed`ddaddbdEed8e dSe dTdUdVdWdeddcd$ddddeddfddd\hd]d^<d_d^<ƒƒfƒZZdg„ZeidFƒdh„Zeieidƒe di„Z eieidƒe dj„Z!eiei"dƒe dk„Z#eieidGƒdl„Z$eieidmƒdn„Z%ei&eidoƒdp„Z'dq„Z(ei&eidrƒe)e(d ƒZ*ei&eidsƒdt„Z+du„Z,ei&eidvƒe)e,d ƒZ-eieidwƒdx„Z.eieidyƒdz„Z/eiei"d{ƒd|„Z0d}„Z1eieid~ƒd„Z2eieid€ƒe d„Z3eieidQƒd‚„Z4eieidaƒdƒ„Z5eieid„ƒd…„Z6eieid†ƒd‡„Z7eiei"dˆƒd‰„Z8eidbƒe dŠ„Z9eidRƒe d‹„Z:eidŒƒd„Z;eieidŽƒd„Z<eieidƒd‘„Z=eieid’ƒd“„Z>eieid”ƒd•„Z?eieid–ƒd—„Z@eiei"d˜ƒe d™„ZAeieidšƒd›„ZBeieidœƒd„ZCeieidžƒdŸ„ZDeieid ƒd¡„ZEeid¢ƒeFeFeFeFeFeFeFeFeFd£„ ZGeiei"d¤ƒeHd¥eIƒZJeiei"d¦ƒd§„ZKeiei"d¨ƒd%fd%fe e d©dªd%d«„ ZLRS(¬sBa replacement for CMFDefault.DublinCore.DefaultDublinCoreImpl sallowDiscussionsaccessors isDiscussablesmutators edit_accessorseditIsDiscussablesdefaultsenforceVocabularyis vocabularysNonesDefaultslabel_discussion_defaults1sEnabledslabel_discussion_enableds0sDisabledslabel_discussion_disabledswidgetslabelsAllow Discussion?s label_msgidslabel_allow_discussionsdescription_msgidshelp_allow_discussions i18n_domainsplonessubjects multiValuedsSubjects searchablesKeywordsslabel_keywordss help_keywords descriptionss DescriptionsA short summary of the contentslabel_descriptionshelp_descriptions contributorss Contributorsslabel_contributorss{Persons responsible for making contributions to the content of this item. Please enter a list of user names, one per line.shelp_contributorsscreatorssCreatorsslabel_creatorssrowsis•Persons responsible for creating the content of this item. Please enter a list of user names, one per line. The principal creator should come first.s help_creatorss effectiveDatessetEffectiveDateslanguageIndependentsEffective Dates@Date when the content should become available on the public siteslabel_effective_dateshelp_effective_datesexpirationDatessetExpirationDatesExpiration DatesDDate when the content should no longer be visible on the public siteslabel_expiration_dateshelp_expiration_dateslanguagesLanguagesdefault_methodsdefaultLanguages languagesslabel_languages help_languagesrightssRightss Copyrights)A list of copyright info for this contentslabel_copyrightsshelp_copyrightss creation_datescreatedssetCreationDates isMetadatasschematasmetadatas generateModesmVcs Creation DatesDate this object was createdslabel_creation_dateshelp_creation_datesvisiblesedits invisiblesviewsmodification_datesmodifiedssetModificationDatesModification Dates#Date this content was modified lastslabel_modification_dateshelp_modification_datecCsdS(N((sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys__init__×scCs tiSdS(sRetrieve the default languageN(sconfigsLANGUAGE_DEFAULT(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysdefaultLanguageÝscCs t|dƒ}|i|ƒSdS(Nsportal_discussion(s getToolByNamesselfsdtoolsisDiscussionAllowedFor(sselfsencodingsdtool((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys isDiscussableãscCsctt|ƒdtƒ}|tj o0yt|ƒ}WqUttfj oqUXnt|ƒSdS(Nsallow_discussion( sgetattrsaq_basesselfsNonesresultsints TypeErrors ValueErrorsstr(sselfsencodingsresult((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pyseditIsDiscussableès  cKsN|tj o‡yt|ƒ}Wq”ttfj o^|iƒiƒ}hdd<dd<dt<dt<dt<}|i|tƒ}q”Xnt |dƒ}y|i ||ƒWnt tfj oI}|tjo0d |iƒt|ƒf}t|d tƒqJ‚n7d tfj o$td |idƒd tƒnXdS( NsonisoffisnonessNonesportal_discussions_Unable to set discussion on %s to None. Already deleted allow_discussion attribute? Message: %sslevels Unauthorizeds@Catched Unauthorized on discussiontool.overrideDiscussionFor(%s)(sallowDiscussionsNonesints TypeErrors ValueErrorslowersstripsdsgets getToolByNamesselfsdtoolsoverrideDiscussionForsKeyErrorsAttributeErrorserrsgetPhysicalPathsstrsmsgslogsBLATHERs Unauthorizedslog_excs absolute_url(sselfsallowDiscussionskwsdserrsdtoolsmsg((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysallowDiscussionös$ 3  cCs‚t|dtƒ}|tjo;tddfddfddfdd fd d ffƒSnt|ƒo |ƒ}nt|ƒSd S( s1Vocabulary method for the language field savailableLanguagessensEnglishsfrsFrenchsessSpanishspts PortuguesesrusRussianN(sgetattrsselfsNonesavailable_langss DisplayListscallable(sselfsavailable_langs((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys languagess ;  s CreationDatecCs:|idƒi|ƒ}|tjodp |iƒSdS(s6 Dublin Core element - date resource created. s creation_datesUnknownN(sselfsgetFieldsgetscreationsNonesISO(sselfscreation((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys CreationDate1ss EffectiveDatecCs:|idƒi|ƒ}|tjodp |iƒSdS(s@ Dublin Core element - date resource becomes effective. s effectiveDatesNoneN(sselfsgetFieldsgets effectivesNonesISO(sselfs effective((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys EffectiveDate9scCs|idƒi|ƒSdS(s$Computed attribute accessor s effectiveDateN(sselfsgetFieldsget(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys_effective_date@sseffective_datesExpirationDatecCs:|idƒi|ƒ}|tjodp |iƒSdS(s5Dublin Core element - date resource expires. sexpirationDatesNoneN(sselfsgetFieldsgetsexpiressNonesISO(sselfsexpires((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysExpirationDateJscCs|idƒi|ƒSdS(s$Computed attribute accessor sexpirationDateN(sselfsgetFieldsget(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys_expiration_dateQssexpiration_datesDatecCsZ|idƒi|ƒ}|tjo|iƒ}n|tjotƒp |iƒSdS(s4 Dublin Core element - default date s effectiveDateN(sselfsgetFieldsgets effectivesNonesmodifiedsDateTimesISO(sselfs effective((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysDateZs  sFormatcCs|iƒSdS(sJcmf/backward compat Dublin Core element - resource format N(sselfsgetContentType(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysFormatfss setFormatcCs|i|ƒdS(s%cmf/backward compat: ignore setFormatN(sselfssetContentTypesvalue(sselfsvalue((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys setFormatoscCs|iƒSdS(s dublin core getId methodN(sselfsgetId(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys IdentiferssscontentEffectivecCsq|idƒi|ƒ}|idƒi|ƒ}|tjp ||j}|tjp ||j}|o|SdS(s;Is the date within the resource's effective range? s effectiveDatesexpirationDateN( sselfsgetFieldsgets effectivesexpiressNonesdates pastEffectivesbeforeExpiration(sselfsdatesbeforeExpirations effectivesexpiress pastEffective((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pyscontentEffectivezs scontentExpiredcCsM| o tƒ}n|idƒi|ƒ}| o t}n||jSdS(s) Is the date after resource's expiration sexpirationDateN(sdatesDateTimesselfsgetFieldsgetsexpiress CEILING_DATE(sselfsdatesexpires((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pyscontentExpired„s  cCs4|idƒi|ƒ}|tjotp|SdS(sSDublin Core element - date resource created, returned as DateTime. s creation_dateN(sselfsgetFieldsgetscreatedsNones FLOOR_DATE(sselfscreated((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pyscreated‘scCs |idƒi|ƒ}|SdS(sYDublin Core element - date resource last modified, returned as DateTime. smodification_dateN(sselfsgetFieldsgetsmodified(sselfsmodified((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysmodifiedšss effectivecCs4|idƒi|ƒ}|tjotp|SdS(s]Dublin Core element - date resource becomes effective, returned as DateTime. s effectiveDateN(sselfsgetFieldsgets effectivesNones FLOOR_DATE(sselfs effective((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys effective£ssexpirescCs4|idƒi|ƒ}|tjotp|SdS(sSDublin Core element - date resource expires, returned as DateTime. sexpirationDateN(sselfsgetFieldsgetsexpiressNones CEILING_DATE(sselfsexpires((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysexpires«ssnotifyModifiedcCs2|itƒƒt|dƒo|iƒndS(s~ Take appropriate action after the resource has been modified. For now, change the modification_date. shttp__refreshEtagN(sselfssetModificationDatesDateTimesshasattrshttp__refreshEtag(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysnotifyModifiedÈscCsF|tjo tƒ}n|i|ƒ}|idƒi||ƒdS(sySet the date when the resource was last modified. When called without an argument, sets the date to now. smodification_dateN(smodification_datesNonesDateTimesmodifiedsselfs_datifysgetFieldsset(sselfsmodification_datesmodified((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pyssetModificationDateÔs   cCsF|tjo tƒ}n|i|ƒ}|idƒi||ƒdS(ssSet the date when the resource was created. When called without an argument, sets the date to now. s creation_dateN(s creation_datesNonesDateTimescreatedsselfs_datifysgetFieldsset(sselfs creation_datescreated((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pyssetCreationDateßs   s_datifycCsQ|djo t}nt|tƒ o!|tj ot|ƒ}qIn|SdS(sBTry to convert something into a DateTime instance or None sNoneN(sdatesNones isinstancesDateTime(sselfsdate((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys_datifyês   s PublishercCsdSdS(s1Dublin Core element - resource publisher s No publisherN((sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys PublisherùssModificationDatecCs1|iƒ}|tjotƒp |iƒSdS(s< Dublin Core element - date resource last modified. N(sselfsmodifiedsNonesDateTimesISO(sselfsmodified((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysModificationDates sTypecCsLtt|ƒdƒo+|iƒ}|tj o|iƒSqAn|iSdS(s!Dublin Core element - Object types getTypeInfoN(shasattrsaq_basesselfs getTypeInfostisNonesTitles meta_type(sselfsti((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysTypes   s IdentifiercCs|iƒSdS(sDublin Core element - Object IDN(sselfs absolute_url(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys IdentifiersslistContributorscCs|iƒSdS(s"Dublin Core element - ContributorsN(sselfs Contributors(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pyslistContributorsss addCreatorcCsl|tjo%t|dƒ}|iƒiƒ}n|o||iƒj o|i|i |fƒndS(s. Add creator to Dublin Core creators. sportal_membershipN( screatorsNones getToolByNamesselfsmtoolsgetAuthenticatedMembersgetIds listCreatorss setCreatorsscreators(sselfscreatorsmtool((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys addCreators  s listCreatorscCst|iƒd}|i|ƒ oB|iƒd}|o|i||fƒqc|i|fƒn|i|ƒSdS(s? List Dublin Core Creator elements - resource authors. screatorsiN(sselfsSchemascreatorssgets getOwnerTuplesowner_idsset(sselfscreatorssowner_id((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys listCreators)ssCreatorcCs&|iƒ}|o|dpdSdS(s8 Dublin Core Creator element - resource author. isN(sselfs listCreatorsscreators(sselfscreators((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysCreator8s s content_typecCs|iƒSdS(s7 WebDAV needs this to do the Right Thing (TM). N(sselfsFormat(sself((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys content_typeCssgetMetadataHeaderscCs^g}|id|iƒfƒ|idti|iƒdƒfƒ|id|iƒfƒ|id|iƒfƒ|idti|i ƒdƒfƒ|idti|i ƒdƒfƒ|id |i ƒfƒ|id |i ƒfƒ|id |i ƒfƒ|id |iƒfƒ|id |iƒfƒ|id|iƒfƒ|SdS(s' Return RFC-822-style headers. sTitlesSubjects, s Publishers Descriptions Contributorss; sCreatorssEffective_datesExpiration_datesTypesFormatsLanguagesRightsN(shdrlistsappendsselfsTitlesstringsjoinsSubjects Publishers Descriptions ContributorssCreatorss EffectiveDatesExpirationDatesTypesFormatsLanguagesRights(sselfshdrlist((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysgetMetadataHeadersLs%%%s _editMetadatac Cs|tj o|i|ƒn|tj o|i|ƒn|tj o|i|ƒn|tj o|i |ƒn|tj o|i |ƒn|tj o|i |ƒn|tj o|i|ƒn|tj o|i|ƒn| tj o|i| ƒndS(s9 Update the editable metadata for this resource. N(stitles_markersselfssetTitlessubjects setSubjects descriptionssetDescriptions contributorsssetContributorsseffective_datessetEffectiveDatesexpiration_datessetExpirationDatesformats setFormatslanguages setLanguagesrightss setRights( sselfstitlessubjects descriptions contributorsseffective_datesexpiration_datesformatslanguagesrights((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys _editMetadataes&          smanage_metadatas zmi_metadatasmanage_editMetadatac CsH|i||||||||| ƒ | di |i ƒddƒdS(s' Update metadata from the ZMI. sRESPONSEs/manage_metadatas&?manage_tabs_message=Metadata+updated.N(sselfs _editMetadatastitlessubjects descriptions contributorsseffective_datesexpiration_datesformatslanguagesrightssREQUESTsredirects absolute_url( sselfstitlessubjects descriptions contributorsseffective_datesexpiration_datesformatslanguagesrightssREQUEST((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysmanage_editMetadata‹s  s editMetadatas text/htmlsen-USc CsX|iƒ|id|d|d|d|d|d|d|d|d | ƒ |i ƒd S( s‘ used to be: editMetadata = WorkflowAction(_editMetadata) Need to add check for webDAV locked resource for TTW methods. stitlessubjects descriptions contributorsseffective_datesexpiration_datesformatslanguagesrightsN( sselfs failIfLockeds _editMetadatastitlessubjects descriptions contributorsseffective_datesexpiration_datesformatslanguagesrightss reindexObject( sselfstitlessubjects descriptions contributorsseffective_datesexpiration_datesformatslanguagesrights((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys editMetadata£s   (Ms__name__s __module__s__doc__sIExtensibleMetadatas__implements__sClassSecurityInfossecuritysMetadataSchemas StringFieldsNones DisplayListsSelectionWidgets LinesFieldsTrues KeywordWidgets TextFieldsTextAreaWidgets LinesWidgets DateTimeFieldsCalendarWidgetsconfigsLANGUAGE_DEFAULTsSchemasDateTimesschemastypes__init__sdeclarePrivatesdefaultLanguagesdeclareProtectedsCMFCorePermissionssViews isDiscussableseditIsDiscussablesModifyPortalContentsallowDiscussions languagess CreationDates declarePublics EffectiveDates_effective_datesComputedAttributeseffective_datesExpirationDates_expiration_datesexpiration_datesDatesFormats setFormats IdentiferscontentEffectivescontentExpiredscreatedsmodifieds effectivesexpiressnotifyModifiedssetModificationDatessetCreationDates_datifys PublishersModificationDatesTypes IdentifierslistContributorss addCreators listCreatorssCreators content_typesgetMetadataHeaderss_markers _editMetadatasDTMLFiles_dtmldirsmanage_metadatasmanage_editMetadatas editMetadata(((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pysExtensibleMetadata%sj   0           $ ,      (                                  $    sExtensibleMetadataSchema(/sstringsProducts.Archetypes.FieldsProducts.Archetypes.WidgetsProducts.Archetypes.SchemasSchemasMetadataSchemas'Products.Archetypes.interfaces.metadatasIExtensibleMetadatasProducts.Archetypes.utilss DisplayListsshasattrsProducts.Archetypes.debugslogslog_excsBLATHERs deprecatedsProducts.Archetypessconfigs Persistences Acquisitionsaq_bases AccessControlsClassSecurityInfos UnauthorizedsDateTime.DateTimesDateTimesGlobalssInitializeClasssDTMLFilesProducts.CMFCoresCMFCorePermissionssProducts.CMFCore.utilss getToolByNamesProducts.CMFDefault.utilss_dtmldirsComputedAttributes_markersTrues NameErrorsFalses FLOOR_DATEs CEILING_DATEs PersistentsExtensibleMetadatasschemasExtensibleMetadataSchemas__all__(sExtensibleMetadatasMetadataSchemasDateTimes getToolByNames Persistencesaq_baseslogs__all__sSchemasconfigsComputedAttributes_markers DisplayLists UnauthorizedsClassSecurityInfosInitializeClasssDTMLFilesTruesstrings CEILING_DATEsBLATHERsFalses deprecatedsIExtensibleMetadatasCMFCorePermissionssshasattrs_dtmldirslog_excsExtensibleMetadataSchemas FLOOR_DATE((sL/mnt/gmirror/ports/www/zope-archetypes/work/Archetypes/ExtensibleMetadata.pys?sF                   ÿÿœ