Ignore:
Timestamp:
Jun 16, 2010 2:28:02 PM (14 years ago)
Author:
mylan
Message:

Merged revisions 3566-3575 via svnmerge from
http://svn.quintagroup.com/products/quintagroup.plonegooglesitemaps/branches/test_refactoring

........

r3566 | mylan | 2010-06-14 12:24:52 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Split single testqPloneGoogleSitemaps module into several specific one

........

r3567 | mylan | 2010-06-14 16:14:34 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Improve code coverage - remove useless BBB code from interfaces.

........

r3568 | mylan | 2010-06-14 20:24:25 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Improve code coverage - added test for MobileSitemap?, MobileSitemapView?.

........

r3569 | mylan | 2010-06-14 22:39:39 +0300 (Mon, 14 Jun 2010) | 1 line


#206: reorganize sitemap tests

........

r3570 | mylan | 2010-06-14 22:40:12 +0300 (Mon, 14 Jun 2010) | 1 line


#206: Added configlet tests

........

r3571 | mylan | 2010-06-14 23:05:19 +0300 (Mon, 14 Jun 2010) | 1 line


#206: remove BBB code for plone<3.0

........

r3572 | mylan | 2010-06-14 23:12:00 +0300 (Mon, 14 Jun 2010) | 1 line


#206: added workflow vocabularies tests for SitemapTypes?

........

r3573 | mylan | 2010-06-15 21:36:40 +0300 (Tue, 15 Jun 2010) | 1 line


#206: some cleanup, simplify tests

........

r3574 | mylan | 2010-06-16 16:35:31 +0300 (Wed, 16 Jun 2010) | 1 line


#206: move mobile sitemap code preparation into base module

........

r3575 | mylan | 2010-06-16 16:37:14 +0300 (Wed, 16 Jun 2010) | 1 line


#206: Added security tests

........

Location:
quintagroup.plonegooglesitemaps/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • quintagroup.plonegooglesitemaps/trunk

    • Property svnmerge-integrated changed from /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3563 to /quintagroup.plonegooglesitemaps/branches/test_refactoring:1-3576
    • Property svn:mergeinfo set to /quintagroup.plonegooglesitemaps/branches/test_refactoring:2527-2536
  • quintagroup.plonegooglesitemaps/trunk/quintagroup/plonegooglesitemaps/content/sitemap.py

    r2406 r2538  
    158158        """ 
    159159        self.getField('pingTransitions').set(self, value) 
    160         if not IS_PLONE_3: 
    161             # Update Workflow if needed 
    162             pw = getToolByName(self, 'portal_workflow') 
    163             #ping_googlesitemap = PING_EMETHODS_MAP[self.getSitemapType()] 
    164             transmap = {} 
    165             for key in value: 
    166                 if key.find('#')>0: 
    167                     ids = key.split('#') 
    168                     wfid = ids[0] 
    169                     if not wfid in transmap.keys(): 
    170                         transmap[wfid]=[] 
    171                     transmap[wfid].append(ids[1]) 
    172             for wfid in transmap.keys(): 
    173                 workflow = pw.getWorkflowById(wfid) 
    174                 if ping_googlesitemap not in workflow.scripts.objectIds(): 
    175                     workflow.scripts.manage_addProduct['ExternalMethod'].manage_addExternalMethod( 
    176                         ping_googlesitemap, 
    177                         'Ping sitemap', 
    178                         'quintagroup.plonegooglesitemaps.ping_googlesitemap', 
    179                         ping_googlesitemap) 
    180                 transitions_set = transmap[wfid] 
    181                 for transition in workflow.transitions.values(): 
    182                     trid = transition.id 
    183                     tras = transition.after_script_name 
    184                     if (tras == '') and (trid in transitions_set): 
    185                         #set 
    186                         after_script = ping_googlesitemap 
    187                     elif (tras == ping_googlesitemap) and not (trid in transitions_set): 
    188                         #reset 
    189                         after_script = '' 
    190                     else: 
    191                         #avoid properties set 
    192                         continue 
    193                     transition.setProperties(title=transition.title, 
    194                         new_state_id=transition.new_state_id, 
    195                         after_script_name=after_script, 
    196                         actbox_name=transition.actbox_name) 
    197160 
    198161atapi.registerType(Sitemap, PROJECTNAME) 
Note: See TracChangeset for help on using the changeset viewer.