Changeset 888
- Timestamp:
- 05/16/12 00:54:57 (12 months ago)
- Location:
- 4.0/enpraxis.educommons/trunk
- Files:
-
- 1 deleted
- 8 edited
- 4 moved
-
docs/HISTORY.txt (modified) (1 diff)
-
enpraxis/educommons/browser/colophon.pt (moved) (moved from 4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/educommonscolophon.pt) (1 diff)
-
enpraxis/educommons/browser/colophon.py (moved) (moved from 4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/educommonscolophon.py) (3 diffs)
-
enpraxis/educommons/browser/configure.zcml (modified) (2 diffs)
-
enpraxis/educommons/browser/footer.pt (moved) (moved from 4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/educommonsfooter.pt) (2 diffs)
-
enpraxis/educommons/browser/footer.py (moved) (moved from 4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/educommonsfooter.py) (1 diff)
-
enpraxis/educommons/configure.zcml (modified) (3 diffs)
-
enpraxis/educommons/profiles/default/actions.xml (modified) (12 diffs)
-
enpraxis/educommons/profiles/default/metadata.xml (modified) (2 diffs)
-
enpraxis/educommons/skins/eduCommons/eduCommonsContent.css.dtml (modified) (3 diffs)
-
enpraxis/educommons/upgrades/openocw (deleted)
-
enpraxis/educommons/version.txt (modified) (1 diff)
-
setup.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
4.0/enpraxis.educommons/trunk/docs/HISTORY.txt
r871 r888 1 1 CHANGELOG 2 2 ========= 3 4 4.1.0 5 ----- 6 * Fixed bug where sometimes course materials would not re-order properly 7 [blambert555] 8 * Refactored collective.oaiintercom to bring it up to date and fix several 9 bugs [blambert555] 10 * Updated to most recent version of collective.contentlicensing [blambert555] 11 * Updated to most recent version of collective.zipfiletransport [blambert555] 12 * Fixed issue with zip file export so that ids rather than titles are used 13 as filenames by default. [blambert555] 14 * Refactored footer and colophon to have their own action lists, making 15 them easily configurable [blambert555] 16 * Moved login and personal tools to the footer, to make them less prominent 17 for end users, who don't benefit from looging in anyway [blambert555] 3 18 4 19 4.0.2 -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/colophon.pt
r887 r888 2 2 metal:define-macro="colophon" 3 3 i18n:domain="plone"> 4 <metal:slot define-slot="colophon" /> 5 <div class="colophonWrapper"> 6 <ul id="portal-colophon-items"> 7 <li>Welcome Brent (manager)</li> 8 <li tal:repeat="action view/colophon_actions"> 9 <a href="" 10 tal:attributes="href action/url;" 11 tal:content="action/title">action title</a> 12 </li> 13 </ul> 4 <metal:slot define-slot="colophon" /> 5 <div class="colophonWrapper"> 6 <ul id="portal-colophon-items"> 7 <li tal:condition="not:view/anonymous">Welcome 8 <a href="" 9 tal:attributes="href view/homelink;" 10 tal:content="view/username">Bob</a></li> 11 <li tal:repeat="action view/colophon_actions"> 12 <a href="" 13 tal:attributes="href action/url;" 14 tal:content="action/title">action title</a> 15 </li> 16 </ul> 17 <tal:block 18 tal:replace="structure string:<!-- eduCommons version: ${view/version} -->" /> 19 </div> 14 20 </div> 15 </div> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/colophon.py
r887 r888 4 4 from zope.component import getMultiAdapter 5 5 from AccessControl import getSecurityManager 6 from zope.component import getMultiAdapter 7 from Products.CMFCore.utils import getToolByName 6 8 7 9 … … 9 11 """ Viewlet for eduCommons """ 10 12 11 index = ViewPageTemplateFile(' educommonscolophon.pt')13 index = ViewPageTemplateFile('colophon.pt') 12 14 13 15 def update(self): … … 15 17 name=u'plone_context_state') 16 18 self.colophon_actions = cs.actions('eccolophon_actions') 19 self.portal_state = getMultiAdapter((self.context, self.request), 20 name=u'plone_portal_state') 21 qi = getToolByName(self.context, 'portal_quickinstaller') 22 self.version = qi.getProductVersion('enpraxis.educommons') 23 self.anonymous = self.portal_state.anonymous() 24 if self.anonymous: 25 self.username = None 26 else: 27 member = self.portal_state.member() 28 uname = self.getUserName(member) 29 roles = self.getRoles(member) 30 if roles: 31 self.username = '%s (%s)' %(uname, roles) 32 else: 33 self.username = uname 34 self.homelink = "%s/personalize_form" % ( 35 self.portal_state.navigation_root_url()) 36 37 38 def getUserName(self, member): 39 """ Get fullname of user or id """ 40 userid = member.getId() 41 ms = getToolByName(self.context, 'portal_membership') 42 minfo = ms.getMemberInfo(userid) 43 if minfo['fullname']: 44 username = minfo.get('fullname') 45 else: 46 username = userid 47 return username 48 49 def getRoles(self, member): 50 """ Get user roles """ 51 roles = '' 52 for x in member.getRoles(): 53 if x not in ['Authenticated', 'Member']: 54 if roles: 55 roles += ', ' 56 roles += x 57 return roles 58 59 def getVersion(self): 60 """ Get the current version of eduCommons """ 61 import pdb; pdb.set_trace() 62 qi = getToolByName(self.context, 'portal_quickinstaller') 63 return qi.getProductVersion('enpraxis.educommons') -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/configure.zcml
r887 r888 397 397 name="eduCommons.footer" 398 398 manager="plone.app.layout.viewlets.interfaces.IPortalFooter" 399 class=". educommonsfooter.eduCommonsFooterViewlet"399 class=".footer.eduCommonsFooterViewlet" 400 400 permission="zope2.View" 401 401 /> … … 404 404 name="eduCommons.colophon" 405 405 manager="plone.app.layout.viewlets.interfaces.IPortalFooter" 406 class=". educommonscolophon.eduCommonsColophonViewlet"406 class=".colophon.eduCommonsColophonViewlet" 407 407 permission="zope2.View" 408 408 /> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/footer.pt
r887 r888 1 1 <div id="portal-footer"> 2 3 2 <h5 class="hiddenStructure" i18n:translate="heading_educommons_footer">eduCommons footer</h5> 4 5 3 <ul id="portal-footer-items"> 6 4 <li tal:repeat="action view/footer_actions" … … 11 9 i18n:translate="">action title</a> 12 10 </li> 13 </ul><br /> 14 11 </ul> 15 12 </div> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/footer.py
r887 r888 9 9 """ Viewlet for eduCommons footer information """ 10 10 11 index = ViewPageTemplateFile(' educommonsfooter.pt')11 index = ViewPageTemplateFile('footer.pt') 12 12 13 13 def update(self): -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/configure.zcml
r864 r888 22 22 directory="profiles/default" 23 23 description="An OpenCourseWare content management extension for Plone." 24 provides="Products.GenericSetup.interfaces.EXTENSION"25 />26 27 <genericsetup:registerProfile28 name="openocw"29 title="eduCommons OpenOCW"30 directory="profiles/openocw"31 description="Extension profile for eduCommons OpenOCW"32 24 provides="Products.GenericSetup.interfaces.EXTENSION" 33 25 /> … … 61 53 62 54 <genericsetup:upgradeStep 63 title="Migration :: 3.1.1 to 3.2.1"64 description="Migrates eduCommons from version 3.1.1 to 3.2.1"65 source="3.1.1"66 destination="3.2.1"67 handler=".upgrades.openocw.v3_1_1_to_3_2_1.migrate"68 sortkey="1"69 profile="enpraxis.educommons:openocw" />70 71 <genericsetup:upgradeStep72 55 title="Migration :: 3.0.2 to 3.1.0" 73 56 description="Migrates eduCommons from version 3.0.2 to 3.1.0" … … 78 61 profile="enpraxis.educommons:default" /> 79 62 80 <genericsetup:upgradeStep81 title="Migration :: 3.0.2 to 3.1.0"82 description="Migrates eduCommons from version 3.0.2 to 3.1.0"83 source="3.0.2"84 destination="3.1.0"85 handler=".upgrades.openocw.v3_0_2_to_3_1_0.migrate"86 sortkey="1"87 profile="enpraxis.educommons:openocw" />88 89 63 <subscriber 90 64 for=".annotations.interfaces.IClearCopyrightable -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/profiles/default/actions.xml
r887 r888 2 2 <object name="portal_actions" meta_type="Plone Actions Tool" 3 3 xmlns:i18n="http://xml.zope.org/namespaces/i18n"> 4 4 <!-- Templates --> 5 5 <object name="template_buttons" meta_type="CMF Action Category"> 6 6 <property name="title"></property> … … 136 136 </object> 137 137 </object> 138 138 <!-- object --> 139 139 <object name="object" meta_type="CMF Action Category"> 140 140 <property name="title"></property> … … 177 177 </object> 178 178 </object> 179 179 <!-- document actions --> 180 180 <object name="document_actions" meta_type="CMF Action"> 181 181 <object name="rss" meta_type="CMF Action" i18n:domain="plone"> … … 210 210 <property name="icon_expr">string:extedit_icon.gif</property> 211 211 </object> 212 213 212 <object name="skinless" meta_type="CMF Action" i18n:domain="eduCommons"> 214 213 <property name="title" i18n:translate="">Content View</property> … … 234 233 </object> 235 234 </object> 236 235 <!-- folder buttons --> 237 236 <object name="folder_buttons" meta_type="CMF Action Category"> 238 <object name="package_course" meta_type="CMF Action" i18n:domain="eduCommons"> 239 <property name="title" i18n:translate="">Package Course</property> 240 <property name="description" i18n:translate=""></property> 241 <property name="url_expr">string:@@package_course_view:method</property> 242 <property name="available_expr">python:object.Type() == 'Course' and object.portal_workflow.getInfoFor(object, 'review_state') == 'Published'</property> 243 <property name="icon_expr"></property> 244 <property name="permissions"> 245 <element value="Modify portal content"/> 246 </property> 247 <property name="visible">True</property> 248 </object> 249 250 <object name="change_copyright" meta_type="CMF Action" i18n:domain="eduCommons"> 251 <property name="title" i18n:translate="">Change Copyright</property> 252 <property name="description" i18n:translate=""></property> 253 <property name="url_expr">string:change_copyright:method</property> 254 <property name="icon_expr"></property> 255 <property name="permissions"> 256 <element value="Modify portal content"/> 257 </property> 258 <property name="visible">True</property> 259 </object> 260 <object name="chance_accessible_flag" meta_type="CMF Action" i18n:domain="plone"> 261 <property name="title" i18n:translate="">Accessibility</property> 262 <property name="description" i18n:translate=""></property> 263 <property name="url_expr">string:change_accessibility:method</property> 264 <property name="icon_expr"></property> 265 <property name="permissions"> 266 <element value="Modify portal content"/> 267 </property> 268 <property name="visible">True</property> 269 </object> 270 <object name="show_nav" meta_type="CMF Action" i18n:domain="eduCommons"> 271 <property name="title" i18n:translate="">Show in navigation</property> 272 <property name="description" i18n:translate=""></property> 273 <property name="url_expr">string:navigation_show:method</property> 274 <property name="available_expr">python:object.Type() not in ['Division', 'Plone Site']</property> 275 <property name="icon_expr"></property> 276 <property name="permissions"> 277 <element value="Modify portal content"/> 278 </property> 279 <property name="visible">True</property> 280 </object> 281 <object name="remove_nav" meta_type="CMF Action" i18n:domain="eduCommons"> 282 <property name="title" i18n:translate="">Remove from navigation</property> 283 <property name="description" i18n:translate=""></property> 284 <property name="url_expr">string:navigation_remove:method</property> 285 <property name="available_expr">python:object.Type() not in ['Division', 'Plone Site']</property> 286 <property name="icon_expr"></property> 287 <property name="permissions"> 288 <element value="Modify portal content"/> 289 </property> 290 <property name="visible">True</property> 291 </object> 292 293 </object> 294 237 <object name="package_course" meta_type="CMF Action" i18n:domain="eduCommons"> 238 <property name="title" i18n:translate="">Package Course</property> 239 <property name="description" i18n:translate=""></property> 240 <property name="url_expr">string:@@package_course_view:method</property> 241 <property name="available_expr">python:object.Type() == 'Course' and object.portal_workflow.getInfoFor(object, 'review_state') == 'Published'</property> 242 <property name="icon_expr"></property> 243 <property name="permissions"> 244 <element value="Modify portal content"/> 245 </property> 246 <property name="visible">True</property> 247 </object> 248 <object name="change_copyright" meta_type="CMF Action" i18n:domain="eduCommons"> 249 <property name="title" i18n:translate="">Change Copyright</property> 250 <property name="description" i18n:translate=""></property> 251 <property name="url_expr">string:change_copyright:method</property> 252 <property name="icon_expr"></property> 253 <property name="permissions"> 254 <element value="Modify portal content"/> 255 </property> 256 <property name="visible">True</property> 257 </object> 258 <object name="chance_accessible_flag" meta_type="CMF Action" i18n:domain="plone"> 259 <property name="title" i18n:translate="">Accessibility</property> 260 <property name="description" i18n:translate=""></property> 261 <property name="url_expr">string:change_accessibility:method</property> 262 <property name="icon_expr"></property> 263 <property name="permissions"> 264 <element value="Modify portal content"/> 265 </property> 266 <property name="visible">True</property> 267 </object> 268 <object name="show_nav" meta_type="CMF Action" i18n:domain="eduCommons"> 269 <property name="title" i18n:translate="">Show in navigation</property> 270 <property name="description" i18n:translate=""></property> 271 <property name="url_expr">string:navigation_show:method</property> 272 <property name="available_expr">python:object.Type() not in ['Division', 'Plone Site']</property> 273 <property name="icon_expr"></property> 274 <property name="permissions"> 275 <element value="Modify portal content"/> 276 </property> 277 <property name="visible">True</property> 278 </object> 279 <object name="remove_nav" meta_type="CMF Action" i18n:domain="eduCommons"> 280 <property name="title" i18n:translate="">Remove from navigation</property> 281 <property name="description" i18n:translate=""></property> 282 <property name="url_expr">string:navigation_remove:method</property> 283 <property name="available_expr">python:object.Type() not in ['Division', 'Plone Site']</property> 284 <property name="icon_expr"></property> 285 <property name="permissions"> 286 <element value="Modify portal content"/> 287 </property> 288 <property name="visible">True</property> 289 </object> 290 </object> 295 291 <object name="other_options" meta_type="CMF Action Category"> 296 292 <object name="search_and_replace" meta_type="CMF Action" i18n:domain="eduCommons"> … … 344 340 <element value="Modify portal content"/> 345 341 </property> 346 <property name="visible">True</property>342 <property name="visible">True</property> 347 343 </object> 348 344 <object name="export_wp" meta_type="CMF Action" i18n:domain="eduCommons"> … … 355 351 <element value="Modify portal content"/> 356 352 </property> 357 <property name="visible">True</property>353 <property name="visible">True</property> 358 354 </object> 359 355 <object name="studygroups" meta_type="CMF Action" i18n:domain="eduCommons"> … … 368 364 </object> 369 365 </object> 366 <!-- Footer actions --> 370 367 <object name="ecfooter_actions" meta_type="CMF Action Category"> 371 368 <property name="title"></property> … … 428 425 <property name="visible">True</property> 429 426 </object> 427 </object> 428 <!-- colophon actions --> 429 <object name="eccolophon_actions" meta_type="CMF Action Category"> 430 <property name="title"></property> 430 431 <object name="login" meta_type="CMF Action" i18n:domain="plone"> 431 432 <property name="title" i18n:translate="">Log in</property> … … 451 452 <property name="visible">True</property> 452 453 </object> 454 <object name="deploy" meta_type="CMF Action" i18n:domain="staticsite"> 455 <property name="title" i18n:translate="">Deploy</property> 456 <property name="description" i18n:translate="">Deploy a static version of the Plone site.</property> 457 <property name="url_expr">string:${portal_url}/@@deployform</property> 458 <property name="permissions"> 459 <element value="Manage portal" /> 460 </property> 461 <property name="visible">False</property> 462 </object> 453 463 <object name="logout" meta_type="CMF Action" i18n:domain="plone"> 454 464 <property name="title" i18n:translate="">Log out</property> … … 462 472 <property name="visible">True</property> 463 473 </object> 464 </object> 465 <object name="eccolophon_actions" meta_type="CMF Action Category"> 466 <property name="title"></property> 474 <object name="valid_xhtml" meta_type="CMF Action" i18n:domain="eduCommons"> 475 <property name="title" i18n:translate="">Validate XHTML</property> 476 <property name="description" i18n:translate=""></property> 477 <property 478 name="url_expr">string:http://validator.w3.org/check/referer</property> 479 <property name="icon_expr"></property> 480 <property name="available_expr"></property> 481 <property name="permissions"> 482 <element value="Modify portal content"/> 483 </property> 484 <property name="visible">False</property> 485 </object> 486 <object name="valid_css" meta_type="CMF Action" i18n:domain="eduCommons"> 487 <property name="title" i18n:translate="">Validate CSS</property> 488 <property name="description" i18n:translate=""></property> 489 <property 490 name="url_expr"></property> 491 <property name="icon_expr"></property> 492 <property name="available_expr"></property> 493 <property name="permissions"> 494 <element value="Modify portal content"/> 495 </property> 496 <property name="visible">False</property> 497 </object> 467 498 <object name="poweredby_educommons" meta_type="CMF Action" i18n:domain="eduCommons"> 468 499 <property name="title" i18n:translate="">Powered by eduCommons</property> … … 470 501 <property 471 502 name="url_expr">string:http://educommons.com</property> 472 <property name="icon_expr"></property>473 <property name="available_expr"></property>474 <property name="permissions">475 <element value="View"/>476 </property>477 <property name="visible">True</property>478 </object>479 <object name="valid_xhtml" meta_type="CMF Action" i18n:domain="eduCommons">480 <property name="title" i18n:translate="">Valid XHTML</property>481 <property name="description" i18n:translate=""></property>482 <property483 name="url_expr">string:http://validator.w3.org/check/referer</property>484 503 <property name="icon_expr"></property> 485 504 <property name="available_expr"></property> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/profiles/default/metadata.xml
r887 r888 2 2 <metadata> 3 3 <description>eduCommons</description> 4 <version>10 0</version>4 <version>101</version> 5 5 <dependencies> 6 6 <dependency>profile-collective.plonebookmarklets:default</dependency> … … 19 19 <dependency>profile-Products.openstudy:default</dependency> 20 20 <dependency>profile-Products.highlighter:default</dependency> 21 <dependency>profile-plone.app.caching:default</dependency> 21 22 </dependencies> 22 23 </metadata> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/skins/eduCommons/eduCommonsContent.css.dtml
r887 r888 11 11 padding: 0 0 0 0; 12 12 margin: -1px 0 0 -11px; 13 } 14 15 #portal-searchbox { 16 padding-top: 35px; 17 } 18 19 #portal-searchbox input.inputLabel { 20 border-radius: 5px 5px 5px 5px; 21 border-style: none; 22 height: 20px; 13 23 } 14 24 … … 800 810 /* Default Plone utilizes display:table-row and table-cell, both of which don't work in IE7 */ 801 811 812 #portal-colophon { 813 padding: 0.5em; 814 } 815 802 816 #portal-colophon-items li { 803 817 display: inline; … … 810 824 #portal-colophon-items li:last-child:after { 811 825 content: ""; 826 } 827 828 #portal-footer { 829 padding: 0.5em; 812 830 } 813 831 -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/version.txt
r871 r888 1 4. 0.21 4.1.0 -
4.0/enpraxis.educommons/trunk/setup.py
r871 r888 23 23 from setuptools import setup, find_packages 24 24 25 version = '4. 0.2'25 version = '4.1.0' 26 26 27 27 setup(name='enpraxis.educommons',
Note: See TracChangeset
for help on using the changeset viewer.
