Changeset 759
- Timestamp:
- 05/01/11 02:18:20 (2 years ago)
- Location:
- 4.0/enpraxis.educommons/trunk/enpraxis/educommons
- Files:
-
- 2 added
- 24 edited
- 1 copied
-
annotations/fields.py (modified) (1 diff)
-
browser/__init__.py (modified) (4 diffs)
-
browser/controlpanel.py (modified) (2 diffs)
-
browser/divisioncourses.pt (modified) (2 diffs)
-
browser/foldercontents.pt (modified) (1 diff)
-
browser/other.py (modified) (1 diff)
-
browser/school_division_listing.pt (modified) (1 diff)
-
browser/templatechooser.py (modified) (1 diff)
-
browser/templates/aboutprof_view.pt (modified) (1 diff)
-
browser/templates/course_view.pt (modified) (1 diff)
-
browser/templates/division_view.pt (modified) (1 diff)
-
browser/templates/frontpage_view.pt (modified) (1 diff)
-
browser/templates/school_view.pt (modified) (1 diff)
-
portlet/configure.zcml (modified) (1 diff)
-
portlet/coursebuilderform.py (modified) (7 diffs)
-
portlet/openstudy.py (added)
-
portlet/openstudyportlet.pt (added)
-
portlet/scoursebuilderform.py (modified) (1 diff)
-
portlet/simplenavportlet.py (modified) (2 diffs)
-
profiles/default/metadata.xml (modified) (1 diff)
-
profiles/default/portlets.xml (modified) (1 diff)
-
profiles/default/propertiestool.xml (modified) (6 diffs)
-
profiles/default/skins.xml (modified) (1 diff)
-
profiles/default/types.xml (modified) (1 diff)
-
setupHandlers.py (modified) (2 diffs)
-
skins/eduCommons (copied) (copied from 4.0/enpraxis.educommons/trunk/enpraxis/educommons/skins/eduCommons)
-
skins/eduCommons/eduCommonsContent.css.dtml (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
4.0/enpraxis.educommons/trunk/enpraxis/educommons/annotations/fields.py
r747 r759 84 84 """ This class adds a position holder for objects in a course. """ 85 85 86 implements(ICourseOrder) 87 86 88 def __init__(self, context): 87 89 self.context = context -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/__init__.py
r746 r759 28 28 from Products.CMFPlone.utils import getToolByName 29 29 from enpraxis.educommons.utilities.interfaces import IECUtility 30 from enpraxis.educommons.annotations.interfaces import ICourseOrderable, ICourseOrder 30 31 from collective.contentlicensing.utilities.interfaces import IContentLicensingUtility 31 32 from Products.Five.formlib.formbase import EditForm … … 168 169 169 170 if position == 'up': 170 self.moveUp(context, position, id, url)171 self.moveUp(context, self.request, position, id, url) 171 172 elif position == 'down': 172 self.moveDown(context, position, id, url)173 self.moveDown(context, self.request, position, id, url) 173 174 else: 174 175 return 175 176 176 177 177 def moveUp(self, context, position, id, path):178 def moveUp(self, context, request, position, id, path): 178 179 objs = self.getNavObjects(context) 179 180 … … 193 194 prev_obj = obj 194 195 195 context.request.response.redirect('order_courseobjs')196 request.response.redirect('order_courseobjs') 196 197 197 198 198 def moveDown(self, context, position, id,path):199 def moveDown(self, context, request, position, id,path): 199 200 objs = self.getNavObjects(context) 200 201 … … 217 218 index += 1 218 219 219 context.request.response.redirect('order_courseobjs')220 request.response.redirect('order_courseobjs') 220 221 221 222 def swapPosition(self, cur_obj, swp_obj): 222 tmp_pos = IAnnotations(cur_obj)['eduCommons.objPositionInCourse'] 223 IAnnotations(cur_obj)['eduCommons.objPositionInCourse'] = IAnnotations(swp_obj)['eduCommons.objPositionInCourse'] 224 IAnnotations(swp_obj)['eduCommons.objPositionInCourse'] = tmp_pos 225 cur_obj.reindexObject() 226 swp_obj.reindexObject() 223 if ICourseOrderable.providedBy(cur_obj): 224 cobj = ICourseOrder(cur_obj) 225 if ICourseOrderable.providedBy(swp_obj): 226 sobj = ICourseOrder(swp_obj) 227 tmp = cobj.position 228 cobj.position = sobj.position 229 sobj.position = tmp 230 cur_obj.reindexObject() 231 swp_obj.reindexObject() 232 233 # import pdb; pdb.set_trace() 234 # cobj = IAnnotations(cur_obj) 235 # sobj = IAnnotations(swp_obj) 236 # tmp = cobj['eduCommons.objPositionInCourse'] 237 # cobj['eduCommons.objPositionInCourse'] = sobj['eduCommons.objPositionInCourse'] 238 # sobj['eduCommons.objPositionInCourse'] = tmp 239 # cur_obj.reindexObject() 240 # swp_obj.reindexObject() 241 #import pdb; pdb.set_trace() 242 #tmp_pos = IAnnotations(cur_obj)['eduCommons.objPositionInCourse'] 243 #IAnnotations(cur_obj)['eduCommons.objPositionInCourse'] = IAnnotations(swp_obj)['eduCommons.objPositionInCourse'] 244 #IAnnotations(swp_obj)['eduCommons.objPositionInCourse'] = tmp_pos 245 #cur_obj.reindexObject() 246 #swp_obj.reindexObject() 227 247 228 248 def getNavObjects(self, context): -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/controlpanel.py
r682 r759 98 98 enabled = self.get_school_enable() 99 99 pt = getattr(self.context.portal_types, 'Plone Site', None) 100 ecprops = self.context.portal_properties.educommons_properties 100 101 if pt: 101 102 atypes = list(pt.getProperty('allowed_content_types')) … … 104 105 atypes.append('School') 105 106 pt.manage_changeProperties(allowed_content_types=atypes) 107 ecprops.manage_changeProperties(school_enable=True) 106 108 elif not school and enabled: 107 109 # Disable school object 108 110 atypes.remove('School') 109 111 pt.manage_changeProperties(allowed_content_types=atypes) 112 ecprops.manage_changeProperties(school_enable=False) 110 113 111 114 def get_school_descriptor(self): -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/divisioncourses.pt
r746 r759 21 21 </tfoot> 22 22 <tbody> 23 <tal:block tal:repeat="item courses"> 23 <tal:block tal:condition="courses" 24 tal:repeat="item courses"> 24 25 <tr tal:define="oddrow repeat/item/odd; 25 26 item_course python:item[0]; … … 48 49 </tr> 49 50 </tal:block> 51 <tr tal:condition="not: courses"> 52 <td><p class="discreet">No courses have been defined.</p></td> 53 </tr> 50 54 </tbody> 51 55 </table> 52 53 54 55 <!-- 56 <p class="division-title"> 57 <span tal:condition="schoolinfo"> 58 <a href="" 59 tal:attributes="href schoolinfo/absolute_url" 60 tal:content="schoolinfo/Title">Division Title</a> | 61 </span> 62 63 <a href="" 64 tal:attributes="href context/absolute_url" 65 tal:content="context/Title">Division Title</a> 56 <p class="link-top"> 57 <a href="#top" title="Return to Top">Return to Top</a> 66 58 </p> 67 68 <tal:block tal:repeat="item courses">69 <ul tal:define="oddrow repeat/item/odd;70 item_course python:item[0];71 item_oertypes python:item[1];72 item_fullname item_course/getFullCourseName;"73 tal:attributes="class python:oddrow and 'course-listing even' or74 'course-listing odd'">75 <li>76 <a href=""77 tal:attributes="href item_course/getURL"78 tal:content="item_fullname">MATH 101 - Linear Algebra, Fall79 2010</a>80 </li>81 <li>82 <tal:block tal:condition="item_oertypes"83 tal:repeat="category view/getOerCategories">84 <tal:block tal:define="otypes python:view.getOerCategory(item_oertypes, category[0])">85 <tal:block tal:condition="otypes"86 tal:repeat="otype otypes">87 <a href=""88 tal:attributes="href otype/getURL;89 title otype/Title;"><img src=""90 tal:attributes="src python:category[1];"/></a>91 </tal:block>92 </tal:block>93 </tal:block>94 </ul>95 </tal:block>96 <tal:block tal:condition="python:not courses">97 <p class="course-listing">There are no published courses in this department.</p>98 </tal:block>99 -->100 101 102 <p class="link-top">103 <a href="#top" title="Return to Top">Return to Top</a>104 </p> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/foldercontents.pt
r8 r759 31 31 </h1> 32 32 33 <div tal:replace="structure provider:plone.belowcontenttitle" />33 <!-- <div tal:replace="structure provider:plone.belowcontenttitle" /> --> 34 34 35 35 <a href="" -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/other.py
r684 r759 11 11 context_state = getMultiAdapter((context, self.request), 12 12 name=u'plone_context_state') 13 actions = context_state.actions() 14 if actions.has_key('other_options'): 15 return [x for x in actions['other_options']] 13 return context_state.actions(category='other_options') 16 14 -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/school_division_listing.pt
r746 r759 8 8 folderContents python: (over_limit and folderContents[:limit_display]) or folderContents;"> 9 9 10 10 11 <tal:listing condition="folderContents"> 11 12 12 13 13 14 <div class="division-listing"> 14 <p class="division-title" i18n:domain="eduCommons" i18n:translate="">Departments</p> 15 <p class="division-title" 16 i18n:domain="eduCommons" 17 i18n:translate="">Departments</p> 15 18 16 19 -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/templatechooser.py
r746 r759 68 68 text = template(context) 69 69 context.setText(text) 70 if data['template'] in ['syllabus_view']:70 if 'syllabus_view' == data['template']: 71 71 context.setPresentation(True) 72 context.setExcludeFromNav(False) 73 mut = self.context.Schema()['oerType'].getMutator(self.context) 74 mut(['Syllabus']) 75 elif 'schedule_view' == data['template']: 76 context.setExcludeFromNav(False) 77 mut = self.context.Schema()['oerType'].getMutator(self.context) 78 mut(['Schedule']) 79 elif 'aboutprof_view' == data['template']: 80 context.setExcludeFromNav(False) 81 mut = self.context.Schema()['oerType'].getMutator(self.context) 82 mut(['']) 83 context.reindexObject() 72 84 self.request.response.redirect('view') 73 85 -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/templates/aboutprof_view.pt
r8 r759 12 12 <img alt="Professor Image" title="Professor Image" width="275" height="275" border="0" 13 13 src="" 14 tal:attributes="src string: ${here/portal_url}/eduCommonsDivision.gif"/>14 tal:attributes="src string:eduCommonsDivision.gif"/> 15 15 </td> 16 16 <td id="aboutInfo"> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/templates/course_view.pt
r8 r759 12 12 <img alt="Course Image" title="Course Image" width="275" height="275" border="0" 13 13 src="" 14 tal:attributes="src string: ${here/portal_url}/eduCommonsDivision.gif"/>14 tal:attributes="src string:eduCommonsDivision.gif"/> 15 15 </td> 16 16 <td id="aboutInfo"> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/templates/division_view.pt
r8 r759 12 12 <img width="275" height="275" border="0" title="Department Image" alt="Department Image" 13 13 src="" 14 tal:attributes="src string: ${here/portal_url}/eduCommonsDivision.gif" />14 tal:attributes="src string:eduCommonsDivision.gif" /> 15 15 </td> 16 16 <td id="aboutDeptInfo"> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/templates/frontpage_view.pt
r694 r759 33 33 </tbody> 34 34 </table> 35 <table cellpadding="0" cellspacing="5" summary="User Testimonials">35 <table id="testimonials" summary="User Testimonials"> 36 36 <tbody> 37 37 <tr id="testimonial"> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/browser/templates/school_view.pt
r632 r759 12 12 <img width="275" height="275" border="0" title="School Image" alt="School Image" 13 13 src="" 14 tal:attributes="src string: ${here/portal_url}/eduCommonsDivision.gif" />14 tal:attributes="src string:eduCommonsDivision.gif" /> 15 15 </td> 16 16 <td id="aboutDeptInfo"> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/portlet/configure.zcml
r747 r759 64 64 /> 65 65 66 <plone:portlet 67 name="eduCommons.portlet.OpenStudyPortlet" 68 interface=".openstudy.IOpenStudyPortlet" 69 assignment=".openstudy.Assignment" 70 view_permission="cmf.ManagePortal" 71 edit_permission="cmf.ManagePortal" 72 renderer=".openstudy.Renderer" 73 addview=".openstudy.AddForm" 74 /> 75 66 76 <browser:page 67 77 name="coursebuilderform" -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/portlet/coursebuilderform.py
r747 r759 30 30 from Products.CMFPlone import PloneMessageFactory 31 31 from enpraxis.educommons import eduCommonsMessageFactory as _ 32 from enpraxis.educommons.annotations.interfaces import ICourseOrderable, ICourseOrder 32 33 from Products.CMFCore.utils import getToolByName 33 34 from collective.imstransport.browser.importform import ZipFileLine … … 209 210 self.ims_util = getUtility(IIMSTransportUtility) 210 211 211 def createObject(self, parent, objtype, title, templateid, **kw):212 def createObject(self, parent, objtype, title, templateid, pos, **kw): 212 213 objid = self.plone_utils.normalizeString(title) 213 214 objid = self.context.generateUniqueId(objid) … … 220 221 **kw) 221 222 context._renameAfterCreation() 222 if templateid in ['syllabus_view']:223 if 'syllabus_view' == templateid: 223 224 context.setPresentation(True) 225 mut = context.Schema()['oerType'].getMutator(context) 226 mut(['Syllabus']) 227 elif 'schedule_view' == templateid: 228 mut = context.Schema()['oerType'].getMutator(context) 229 mut(['Schedule']) 230 if pos != -1: 231 if ICourseOrderable.providedBy(context): 232 cobj = ICourseOrder(context) 233 cobj.position = pos 224 234 context.reindexObject() 225 235 return context … … 234 244 'Division', 235 245 newdivision.encode('utf-8'), 236 'division_view') 246 'division_view', 247 -1) 237 248 else: 238 249 division = None … … 251 262 self.request.form['form.coursename'], 252 263 'course_view', 264 0, 253 265 courseId=self.request.form['form.courseid'], 254 term=self.request.form['form.courseterm'] )266 term=self.request.form['form.courseterm'],) 255 267 256 268 if not course: … … 266 278 if type(templates) == type(u''): 267 279 self.createObject(course, 'Document', self.templates[templates], templates) 268 elif type(templates) == type([]): 280 elif type(templates) == type([]): 281 count = 1 269 282 for x in self.request.form['form.templates']: 270 self.createObject(course, 'Document', self.templates[x], x) 283 self.createObject(course, 'Document', self.templates[x], x, count) 284 count += 1 271 285 272 286 # Get IMS file … … 297 311 'School', 298 312 newschool.encode('utf-8'), 299 'school_view') 313 'school_view', 314 -1) 300 315 else: 301 316 school = None -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/portlet/scoursebuilderform.py
r696 r759 117 117 'School', 118 118 newschool.encode('utf-8'), 119 'school_view') 119 'school_view', 120 -1) 120 121 else: 121 122 school = None -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/portlet/simplenavportlet.py
r747 r759 69 69 70 70 else: 71 ptypes = self.context.portal_url.portal_types72 if ptypes.School in ptypes.allowedContentTypes():71 ecprops = self.context.portal_properties.educommons_properties 72 if ecprops.getProperty('school_enable'): 73 73 brains = self.context.portal_catalog.searchResults( 74 74 Type='School', … … 113 113 else: 114 114 ptypes = self.context.portal_url.portal_types 115 if ptypes.School in ptypes.allowedContentTypes():115 if ecprops.getProperty('school_enable'): 116 116 return ecprops.school_descriptor 117 117 return ecprops.division_descriptor -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/profiles/default/metadata.xml
r744 r759 14 14 <dependency>profile-enpraxis.staticsite:default</dependency> 15 15 <dependency>profile-enpraxis.wordpressexchange:default</dependency> 16 <!--17 <dependency>profile-iw.fss:default</dependency>18 -->19 16 <dependency>profile-Products.CMFPlacefulWorkflow:CMFPlacefulWorkflow</dependency> 20 17 <dependency>profile-plone.app.iterate:plone.app.iterate</dependency> 21 <!--22 <dependency>profile-Products.CacheSetup:default</dependency>23 -->24 18 <dependency>profile-Products.LinguaPlone:LinguaPlone</dependency> 25 19 </dependencies> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/profiles/default/portlets.xml
r8 r759 21 21 description="A portlet which provides OER Recommendations" 22 22 /> 23 <portlet 24 addview="eduCommons.portlet.OpenStudyPortlet" 25 title="OpenStudy Portlet" 26 description="A portlet which provides access to OpenStudy" 27 /> 23 28 </portlets> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/profiles/default/propertiestool.xml
r663 r759 1 1 <?xml version="1.0"?> 2 <object name="portal_properties" meta_type="Plone Properties Tool" xmlns:i18n="http://xml.zope.org/namespaces/i18n" i18n:domain="plone"> 2 <object name="portal_properties" 3 meta_type="Plone Properties Tool" 4 xmlns:i18n="http://xml.zope.org/namespaces/i18n" 5 i18n:domain="plone"> 3 6 <object name="navtree_properties" meta_type="Plone Property Sheet"> 4 7 <property name="metaTypesNotToList" type="lines"> … … 8 11 </property> 9 12 </object> 10 <object name="site_properties" meta_type="Plone Property Sheet"> 11 <property name="title">Site wide properties</property> 12 <property name="allowAnonymousViewAbout" type="boolean">True</property> 13 <property name="localTimeFormat" type="string">%m-%d-%Y</property> 14 <property name="localLongTimeFormat" 15 type="string">%m-%d-%Y %I:%M %p %Z</property> 16 <property name="allowRolesToAddKeywords" type="lines"> 17 <element value="Producer"/> 18 <element value="Administrator"/> 19 <element value="Manager"/> 13 <object name="site_properties" meta_type="Plone Property Sheet"> 14 <property name="title">Site wide properties</property> 15 <property name="allowAnonymousViewAbout" type="boolean">True</property> 16 <property name="localTimeFormat" type="string">%m-%d-%Y</property> 17 <property name="localLongTimeFormat" 18 type="string">%m-%d-%Y %I:%M %p %Z</property> 19 <property name="allowRolesToAddKeywords" type="lines"> 20 <element value="Producer"/> 21 <element value="Administrator"/> 22 <element value="Manager"/> 23 </property> 24 <property name="default_page" type="lines"/> 25 <property name="forbidden_contenttypes" type="lines"> 26 <element value="text/x-python"/> 27 <element value="text/x-web-intelligent"/> 20 28 </property> 21 <property name="default_page" type="lines"/> 22 <property name="forbidden_contenttypes" type="lines"> 23 <element value="text/x-python"/> 24 <element value="text/x-web-intelligent"/> 25 </property> 26 </object> 27 <object name="educommons_properties" meta_type="Plone Property Sheet"> 28 <property name="title">eduCommons properties</property> 29 <property name="school_enable" type="boolean">False</property> 30 <property name="school_descriptor" type="string">Schools</property> 31 <property name="division_descriptor" type="string">Divisions</property> 32 <property name="course_descriptor" type="string" i18n:translate="">Course Contents</property> 33 <property name="reusecourse_instance" type="string">http://openocw.org</property> 34 <property name="workflow_order" type="lines"> 35 <element value="InProgress" i18n:attributes="value" /> 36 <element value="QA" i18n:attributes="value" /> 37 <element value="Released" i18n:attributes="value" /> 29 </object> 30 <object name="educommons_properties" meta_type="Plone Property Sheet"> 31 <property name="title">eduCommons properties</property> 32 <property name="school_enable" type="boolean">True</property> 33 <property name="school_descriptor" type="string">Schools</property> 34 <property name="division_descriptor" type="string">Divisions</property> 35 <property name="course_descriptor" type="string" i18n:translate="">Course Contents</property> 36 <property name="reusecourse_instance" type="string">http://openocw.org</property> 37 <property name="workflow_order" type="lines"> 38 <element value="InProgress" i18n:attributes="value" /> 39 <element value="QA" i18n:attributes="value" /> 40 <element value="Released" i18n:attributes="value" /> 38 41 <element value="Published" i18n:attributes="value" /> 39 </property>40 <property name="oerrecommender_enabled" type="boolean">False</property>41 <property name="reusecourse_enabled" type="boolean">True</property>42 </object>42 </property> 43 <property name="oerrecommender_enabled" type="boolean">False</property> 44 <property name="reusecourse_enabled" type="boolean">True</property> 45 </object> 43 46 <object name="content_licensing_properties" meta_type="Plone Property Sheet"> 44 47 <property name="DefaultSiteLicense" type="lines"> … … 102 105 <element value="yahoo.gif" /> 103 106 </property> 104 <property name="css_images" type="lines">105 <element value="headerBackground.png" />106 <element value="topNavBackground.png" />107 </property>107 <property name="css_images" type="lines"> 108 <element value="headerBackground.png" /> 109 <element value="topNavBackground.png" /> 110 </property> 108 111 <property name="states_to_add" type="lines"> 109 112 <element value="published" /> … … 114 117 <element value="portal-searchbox" /> 115 118 <element value="export_openocw" /> 116 <element value="portaltab-feedback" />117 <element value="footer_feedback" />119 <element value="portaltab-feedback" /> 120 <element value="footer_feedback" /> 118 121 </property> 119 122 <property name="actions_to_ignore" type="lines"> … … 126 129 <element value="export-wordpress" /> 127 130 </property> 128 <property name="views_to_add" type="lines">131 <property name="views_to_add" type="lines"> 129 132 <element value="view" /> 130 133 <element value="image_fullscreen_view" /> … … 134 137 <element value="@@rss_feeds" /> 135 138 <element value="skinless_view" /> 136 <element value="rss" />137 <element value="rss_recent" />138 </property>139 <element value="rss" /> 140 <element value="rss_recent" /> 141 </property> 139 142 <property name="non_html_views" type="lines"> 140 143 <element value="rss" /> 141 <element value="rss_recent" />142 <element value="rdf" />143 </property>144 <element value="rss_recent" /> 145 <element value="rdf" /> 146 </property> 144 147 </object> 145 148 </object> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/profiles/default/skins.xml
r8 r759 3 3 cookie_persistence="False" default_skin="Left Skin" 4 4 request_varname="plone_skin"> 5 <object name="e duCommons" meta_type="Filesystem Directory View"5 <object name="enpraxis.eduCommons" meta_type="Filesystem Directory View" 6 6 directory="enpraxis.educommons:skins/eduCommons"/> 7 7 <skin-path name="*"> 8 <layer name="e duCommons" insert-after="custom"/>8 <layer name="enpraxis.eduCommons" insert-after="custom"/> 9 9 </skin-path> 10 10 </object> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/profiles/default/types.xml
r632 r759 3 3 <object name="CoursesTopic" 4 4 meta_type="Factory-based Type Information with dynamic views"/> 5 <object name="School"6 meta_type="Factory-based Type Information with dynamic views"/>5 <object name="School" 6 meta_type="Factory-based Type Information with dynamic views"/> 7 7 <object name="Division" 8 8 meta_type="Factory-based Type Information with dynamic views"/> -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/setupHandlers.py
r747 r759 49 49 setupControlPanel(site) 50 50 setupTransforms(site) 51 customizeAddOnProducts(site) 52 53 54 51 55 #setupKupu(site) 52 customizeAddOnProducts(site)53 56 #addCopyrightIndexToCatalog(site) 54 57 #addCopyrightMetadataToCatalog(site) … … 338 341 site = getattr(pt, 'Plone Site') 339 342 site.filter_content_types = 1 340 site.allowed_content_types = ('Topic', ' Division', 'Folder', 'Document', 'Link', 'File', 'Image', 'CoursesTopic', 'Feedback')343 site.allowed_content_types = ('Topic', 'School', 'Division', 'Folder', 'Document', 'Link', 'File', 'Image', 'CoursesTopic', 'Feedback') 341 344 342 345 -
4.0/enpraxis.educommons/trunk/enpraxis/educommons/skins/eduCommons/eduCommonsContent.css.dtml
r745 r759 277 277 278 278 table.documentTable { 279 border-top: 1px solid #333433; 280 border-bottom: 1px solid #333433; 281 border-left: 1px solid #333433; 282 border-collapse:collapse !important; 279 border-collapse: separate !important; 280 border: 1px solid lightgrey; 281 box-shadow: 1px 1px 3px #ccc; 282 -moz-box-shadow: 1px 1px 3px #ccc; 283 -webkit-box-shadow: 1px 1px 3px #ccc; 284 border-radius: 5px; 285 -moz-border-radius: 5px; 286 border-spacing: 1px !important; 283 287 } 284 288 285 289 table.documentTable td { 286 290 padding: 5px; 287 border-right: 1px solid #333433;288 291 border-collapse:collapse !important; 292 } 293 294 table.documentTable tbody td { 295 border-left: 1px solid #ccc; 289 296 } 290 297 … … 293 300 color: white; 294 301 font-weight: bold; 302 border-radius: 5px; 303 -moz-border-radius: 5px; 295 304 } 296 305 … … 421 430 position: relative; 422 431 min-height:275px !important;float:none; 432 border-radius: 6px; 433 -moz-border-radius: 6px; 434 box-shadow: 1px 1px 3px #ccc; 435 -moz-box-shadow: 1px 1px 4px #ccc; 436 -webkit-box-shadow: 1px 1px 4px #ccc; 437 border-spacing: 3px !important; 438 border: 1px solid lightgrey !important; 439 border-collapse: separate !important; 440 margin-top: 5px; 423 441 } 424 442 … … 672 690 /* Testimonials */ 673 691 692 #testimonials { 693 border-spacing: 7px !important; 694 border-collapse: separate !important; 695 } 696 674 697 #testimonial td { 675 background: url('testbackground.png') repeat-x #F8F8F8; 676 color: #AAA; 698 background: url('tablebg.gif') repeat-x #F0F0F0; 677 699 width: 209px; 678 700 padding: 10px; … … 681 703 line-height: 1.5em; 682 704 vertical-align: top; 705 border-radius: 6px; 683 706 -moz-border-radius: 6px; 684 -moz-box-shadow: 1px 2px 3px #777; 707 box-shadow: 1px 1px 3px #777; 708 -moz-box-shadow: 1px 1px 3px #777; 709 -webkit-box-shadow: 1px 1px 3px #777; 710 685 711 } 686 712 687 713 #testimonial td h2 { 688 714 color: #FFF; 689 background: # 37406D;715 background: #153588; /*#37406D;*/ 690 716 text-align: center; 691 border: 1px solid #AAA;717 border: 1px solid lightgrey; 692 718 height: 40px; 693 719 padding-top: 10px; 694 padding-bottom: 10px; 720 padding-bottom: 5px; 721 border-radius: 6px; 695 722 -moz-border-radius: 6px; 696 723 /* color: <dtml-var testimonialtextcolor missing="transparent">; */ 697 724 } 698 725 /* 699 726 #testimonial td a:link, 700 727 #testimonial td a:visited { … … 706 733 color: &dtml-portalColumnOneActiveColor;; 707 734 } 708 735 */ 709 736 710 737 #testimonial td ul li { … … 777 804 border-collapse: separate !important; 778 805 width: 100%; 806 box-shadow: 0 0 3px #777; 779 807 -moz-box-shadow: 0 0 3px #777; 808 -webkit-box-shadow: 0 0 3px #777; 809 border-top-left-radius: 6px; 810 border-top-right-radius: 6px; 780 811 -moz-border-radius-topleft: 6px; 781 812 -moz-border-radius-topright: 6px; … … 796 827 padding-left: 5px; 797 828 color: <dtml-var portalTopNavActiveColor missing="transparent">; 829 border-top-left-radius: 6px; 830 border-top-right-radius: 6px; 798 831 -moz-border-radius-topleft: 6px; 799 832 -moz-border-radius-topright: 6px; 833 margin: 0 !important; 800 834 } 801 835 … … 809 843 810 844 811 .division-listing tr.even, .division-listing div.even {845 .division-listing tr.even, .division-listing p.even { 812 846 background-image: url(tablebg.gif); 813 847 } 814 848 815 .division-listing tr.odd, .division-listing div.odd {849 .division-listing tr.odd, .division-listing p.odd { 816 850 background-image: url(tablebg1.gif); 817 851 } 818 852 819 .division-listing tr:hover, .division-listing div:hover {853 .division-listing tr:hover, .division-listing p:hover { 820 854 background-image: none; 821 855 } 822 856 823 .division-listing td {857 .division-listing td, .division-listing p.odd, .division-listing p.even { 824 858 padding: 0.5em; 825 859 vertical-align: top; … … 827 861 828 862 .course-listing { 829 margin: 0 ;863 margin: 0 !important; 830 864 padding: 3px 15px; 831 865 }
Note: See TracChangeset
for help on using the changeset viewer.
