Changeset 40


Ignore:
Timestamp:
01/09/06 16:29:17 (14 years ago)
Author:
vahur
Message:

rename casestudy -> activity

Location:
trunk
Files:
2 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Activity.py

    r38 r40  
    3030)) 
    3131 
    32 class CaseStudy(BaseContent): 
     32class Activity(BaseContent): 
    3333    schema = schema 
    3434    actions= ( 
     
    3636    'id':'view', 
    3737    'name':'view', 
    38     'action':'string:${object_url}/casestudy_view', 
     38    'action':'string:${object_url}/activity_view', 
    3939    'premission':('View',), 
    4040    }, 
     
    4242    'id':'edit', 
    4343    'name':'Edit', 
    44     'action':'string:${object_url}/casestudy_edit', 
     44    'action':'string:${object_url}/activity_edit', 
    4545    'premission':('View',), 
    4646    }, 
    4747    ) 
    48     meta_type = "CaseStudy" 
    49     archetype_name = "CaseStudy"   
     48    meta_type = "Activity" 
     49    archetype_name = "Activity"   
    5050    global_allow = 1 
    5151     
     
    9494        self._p_changed = 1 
    9595 
    96 registerType(CaseStudy, PROJECTNAME) 
     96registerType(Activity, PROJECTNAME) 
  • trunk/__init__.py

    r37 r40  
    1616import Module 
    1717import SyndicatedFolder 
    18 import CaseStudy 
     18import Activity 
    1919 
    2020# Our own portal tools 
  • trunk/tests/ToolboxTestCase.py

    r22 r40  
    99from Products.PloneTestCase import PloneTestCase 
    1010PloneTestCase.installProduct('Toolbox') 
     11PloneTestCase.installProduct('ExtendedPathIndex') 
    1112PloneTestCase.setupPloneSite(policy='Toolbox Site') 
    1213#PloneTestCase.setupPloneSite() 
  • trunk/tests/testActivity.py

    r38 r40  
    11# 
    2 # Test case for CaseStudy content 
     2# Test case for Activity content 
    33# 
    44 
     
    1010from Testing.ZopeTestCase.functional import Functional 
    1111from ToolboxTestCase import ToolboxTestCase 
    12 from Products.Toolbox.CaseStudy import CaseStudy 
     12from Products.Toolbox.Activity import Activity 
    1313from Products.Archetypes.public import PrimaryFieldMarshaller 
    1414 
    15 types = ('CaseStudy',) 
     15types = ('Activity',) 
    1616 
    17 class TestCaseStudy(ToolboxTestCase,Functional): 
     17class TestActivity(ToolboxTestCase,Functional): 
    1818 
    1919    def afterSetUp(self): 
    20         self.content = self.construct('CaseStudy', 'TestCaseStudy', self.folder) 
     20        self.content = self.construct('Activity', 'TestActivity', self.folder) 
    2121 
    2222    def construct(self, portal_type, id, folder): 
     
    3636    testAuthor='Author' 
    3737        testBody='heading' 
    38         ob=self.construct('CaseStudy', ID ,self.folder) 
     38        ob=self.construct('Activity', ID ,self.folder) 
    3939        ob.edit(title=testTitle, author=testAuthor, body=testBody) 
    4040        self.assertEqual(ob.Title(), testTitle) 
     
    4646    from unittest import TestSuite, makeSuite 
    4747    suite = TestSuite() 
    48     suite.addTest(makeSuite(TestCaseStudy)) 
     48    suite.addTest(makeSuite(TestActivity)) 
    4949    return suite 
    5050 
Note: See TracChangeset for help on using the changeset viewer.