Changeset 3498 in products for quintagroup.plonegooglesitemaps
- Timestamp:
- Aug 13, 2012 12:38:11 PM (12 years ago)
- Location:
- quintagroup.plonegooglesitemaps/branches/sitemap_date/quintagroup/plonegooglesitemaps
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.plonegooglesitemaps/branches/sitemap_date/quintagroup/plonegooglesitemaps/__init__.py
r3163 r3498 50 50 permission=config.ADD_PERMISSIONS[atype.portal_type], 51 51 extra_constructors=(constructor,), 52 ).initialize(context)52 ).initialize(context) -
quintagroup.plonegooglesitemaps/branches/sitemap_date/quintagroup/plonegooglesitemaps/events.py
r3163 r3498 12 12 implements(ITransitionEvent) 13 13 14 def __init__(self, obj, workflow, old_state, new_state, transition, \14 def __init__(self, obj, workflow, old_state, new_state, transition, 15 15 status, kwargs): 16 16 ObjectEvent.__init__(self, obj) -
quintagroup.plonegooglesitemaps/branches/sitemap_date/quintagroup/plonegooglesitemaps/filters.py
r3152 r3498 34 34 # absolute path filter 35 35 portal_id = queryMultiAdapter((self.context, self.request), 36 name=u"plone_portal_state").portal().getId() 36 name=u"plone_portal_state" 37 ).portal().getId() 37 38 test_path = '/' + portal_id + fargs 38 39 elif fargs.startswith("./"): -
quintagroup.plonegooglesitemaps/branches/sitemap_date/quintagroup/plonegooglesitemaps/handlers.py
r3488 r3498 26 26 obj_ptype = object.portal_type 27 27 for sm in sitemaps: 28 if wftrans_name in sm.getPingTransitions() \29 andobj_ptype in sm.getPortalTypes():30 ping_google(plone_home, sm.id)28 if wftrans_name in sm.getPingTransitions() and \ 29 obj_ptype in sm.getPortalTypes(): 30 ping_google(plone_home, sm.id) 31 31 return 0 32 32
Note: See TracChangeset
for help on using the changeset viewer.