Changeset 3465 in products for quintagroup.analytics
- Timestamp:
- May 18, 2012 10:55:47 AM (12 years ago)
- Location:
- quintagroup.analytics/trunk/quintagroup/analytics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
quintagroup.analytics/trunk/quintagroup/analytics/browser/views.py
r3464 r3465 11 11 from plone.portlets.interfaces import IPortletAssignmentMapping 12 12 from plone.portlets.interfaces import ILocalPortletAssignmentManager 13 IPortletManager #pyflakes 14 IPortletAssignmentMapping #pyflakes 15 ILocalPortletAssignmentManager #pyflakes 13 16 except ImportError: 14 17 IPortletManager = lambda assignment: {} … … 17 20 try: 18 21 from plone.portlets.interfaces import IPortletAssignmentSettings 19 IPortletAssignmentSettings 22 IPortletAssignmentSettings #pyflakes 20 23 except ImportError: 21 24 # Before plon4 we don't have an annotation storage for settings. -
quintagroup.analytics/trunk/quintagroup/analytics/tests.py
r3380 r3465 174 174 name="ownership_by_type") 175 175 self.pc = self.portal.portal_catalog 176 portal_migration = self.portal.portal_migration 177 version = portal_migration.getFileSystemVersion() 178 self.plone_version = version.replace(".", "") 176 179 177 180 def test_getUsers(self): … … 246 249 'chtt=Content+ownership+by+type&chdl=Folder|Document|'\ 247 250 'Event|Topic&chdlp=b" />' 248 chart_tag = plone4chart_tag 249 if not PLONE40: 251 plone42chart_tag = \ 252 '<img src="http://chart.apis.google.com/chart?chxt=y&'\ 253 'chds=0,57&chd=t:19.0,18.0,17.0,16.0,15.0,14.0,'\ 254 '13.0,12.0,11.0,10.0|19.0,18.0,17.0,16.0,15.0,14.0,13.0,'\ 255 '12.0,11.0,10.0|19.0,18.0,17.0,16.0,15.0,14.0,13.0,12.0,'\ 256 '11.0,10.0|0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0,0.0&'\ 257 'chxr=0,0,57&chco=669933,cc9966,993300,ff6633,e8e4e3,'\ 258 'a9a486,dcb57e,ffcc99,996633,333300,00ff00&chl=user9|'\ 259 'user8|user7|user6|user5|user4|user3|user2|user1|user0&'\ 260 'chbh=a,10,0&chs=800x375&cht=bvs&'\ 261 'chtt=Content+ownership+by+type&chdl=Folder|Document|'\ 262 'Event|Collection&chdlp=b"/>' 263 264 if self.plone_version < "40": 250 265 chart_tag = plone33chart_tag 266 elif self.plone_version > "42": 267 chart_tag = plone42chart_tag 268 else: 269 chart_tag = plone4chart_tag 251 270 252 271 self.loginAsPortalOwner() … … 396 415 'vs&chtt=Content+type+by+state&chdl=private|published|N'\ 397 416 'o+workflow&chdlp=b"/>' 417 plone42chart_tag = \ 418 '<imgsrc="http://chart.apis.google.com/chart?chxt=y&chds=0,'\ 419 '159&chd=t:156.0,145.0,145.0,0.0|3.0,1.0,0.0,2.0|0.0,0.0,0.'\ 420 '0,0.0&chxr=0,0,159&chco=669933,cc9966,993300,ff6633,e8'\ 421 'e4e3,a9a486,dcb57e,ffcc99,996633,333300,00ff00&chl=Folder|'\ 422 'Document|Event|Collection&chbh=a,10,0&chs=800x375&'\ 423 'cht=bvs&chtt=Content+type+by+state&chdl=private|publis'\ 424 'hed|No+workflow&chdlp=b"/>' 398 425 399 426 if self.plone_version < "40": 400 427 chart_tag = plone33chart_tag 401 elif self.plone_version > "41": 428 elif self.plone_version > "40" and self.plone_version < "41": 429 chart_tag = plone4chart_tag 430 elif self.plone_version > "41" and self.plone_version < "42": 402 431 chart_tag = plone41chart_tag 403 el se:404 chart_tag = plone4 chart_tag432 elif self.plone_version > "42": 433 chart_tag = plone42chart_tag 405 434 406 435 self.loginAsPortalOwner()
Note: See TracChangeset
for help on using the changeset viewer.