Changeset 48

Show
Ignore:
Timestamp:
27/01/06 16:08:30
Author:
sjudge
Message:

Schemata 'chunking' to make page better. Changes to listing.pt to try and display logos (broken) and adding logos to oats_view.pt

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/PloneSoftwareCenter/content/PSCProject.py

    r46 r48  
    6161 
    6262    typeDescMsgId = 'description_edit_package' 
    63     typeDescription = ('Please use the form below to enter details about the project you would like to submit. It is important that you enter as much data as possible.') 
     63    typeDescription = ('Please use the form below to enter details about the project you would like to submit. If you are submitting your own project please use the "Advanced Information" page too.') 
    6464 
    6565    security.declarePrivate('initializeArchetype') 
     
    8080 
    8181        #SETUP the default content of the Project Folder 
    82  
    83         #self.invokeFactory(id='Poll', type_name='PlonePopoll', title=self.title_or_id()+' Poll') 
    8482        self.invokeFactory(id='Poll', type_name='PlonePopoll', title=config.POLL_ID)        
    8583        poll = getattr(self, 'Poll') 
    86         poll.allow_discussion = 0 
    87         #poll.setPollOptions(question='How would you rate '+self.title_or_id()+' ?', choices=['1', '2', '3', '4', '5'], choices_number=1, check_multi=1) 
     84        poll._setProperty("allow_discussion",0) 
    8885        poll.setPollOptions(question='How would you rate this project?', choices=['1', '2', '3', '4', '5'], choices_number=1, check_multi=1) 
    8986        poll.enable() 
    9087        poll.setVisible() 
    9188 
    92         #self.invokeFactory(id='FAQ', type_name='FAQTheme', title=self.title_or_id()+' FAQ', description='Frequently asked questions on '+self.title_or_id()+'.') 
    9389        self.invokeFactory(id='FAQ', type_name='FAQTheme', title=config.FAQ_ID, description='Frequently asked questions.') 
     90        FAQ = getattr(self, 'FAQ') 
     91        FAQ._setProperty("allow_discussion",0) 
    9492  
    95         #self.invokeFactory(id='PoiPscTracker', type_name='PoiPscTracker', title=self.title_or_id()+' Bug Tracker', description=self.title_or_id()+' Bug Tracker') 
    9693        #self.invokeFactory(id='PoiPscTracker', type_name='PoiPscTracker', title=config.TRACKER_ID, description='Bug Tracker') 
    9794  
  • trunk/PloneSoftwareCenter/content/schemata.py

    r46 r48  
    367367    StringField( 
    368368        name='id', 
     369        schemata='Essential Information', 
    369370        required=0, 
    370371        searchable=1, 
     
    376377        ), 
    377378    ), 
     379    
     380    StringField( 
     381        name='title', 
     382        schemata='Essential Information', 
     383        default='', 
     384        searchable=1, 
     385        accessor="Title", 
     386        widget=StringWidget( 
     387            label="Title", 
     388            description="Enter a title for the project", 
     389            i18n_domain="plonesoftwarecenter", 
     390        ), 
     391    ),     
    378392     
     393     
    379394    TextField( 
    380395        name='description', 
     396        schemata='Essential Information', 
    381397        default='', 
    382398        required=1, 
     
    396412    TextField( 
    397413        name='text', 
     414        schemata='Essential Information', 
    398415        required=1, 
    399416        searchable=1, 
     
    414431    LinesField( 
    415432        name='categories', 
     433        schemata='Essential Information', 
    416434        multiValued=1, 
    417435        required=1, 
     
    430448    LinesField( 
    431449        name='categories_need', 
     450        schemata='Essential Information', 
    432451        multiValued=1, 
    433452        required=1, 
     
    446465    StringField( 
    447466        name='contactAddress', 
     467        schemata='Essential Information', 
    448468        required=0, 
    449469        validators = ('isEmail',), 
    450470        widget=StringWidget( 
    451             label="Contact address", 
     471            format='select', 
     472            label="Contact", 
    452473            label_msgid="label_package_contact_address", 
    453474            description="Email contact for the project. ", 
     
    459480    StringField( 
    460481        name='homepage', 
     482        schemata='Essential Information', 
    461483        searchable=1, 
    462484        required=0, 
     
    471493    ), 
    472494 
    473     StringField( 
    474         name='documentationLink', 
    475         searchable=1, 
    476         required=0, 
    477         validators=('isURL',), 
    478         widget=StringWidget( 
    479             label="URL of documentation repository", 
    480             label_msgid="label_package_documentation", 
    481             description="Either the documentation itself, or a documentation page, if it exists.", 
    482             description_msgid="help_package_documentation", 
    483             i18n_domain="plonesoftwarecenter", 
    484         ), 
    485     ), 
    486  
    487495   BooleanField( 
    488496        name='resource_project', 
     497       schemata='Advanced Information', 
    489498        searchable=1, 
    490499        default=0, 
     
    500509  BooleanField( 
    501510        name='request_oats', 
     511        schemata='Advanced Information', 
    502512        searchable=1, 
    503513        default=0, 
     
    514524   BooleanField( 
    515525        name='recommended', 
     526        schemata='Reviewer', 
    516527        accessor="isRecommended", 
    517528        searchable=1, 
     
    521532            label="Recommended Project?", 
    522533            label_msgid="label_package_recommended", 
    523             description="{REVIEWER ONLY} - Recommendation by the project team.", 
     534            description="Recommendation by the project team.", 
    524535            description_msgid="help_package_recommended", 
    525536            i18n_domain="plonesoftwarecenter", 
     
    529540    LinesField( 
    530541        name='oats_status', 
     542        schemata='Reviewer', 
    531543        multiValued=1, 
    532544        vocabulary='getOatsStatusVocab', 
     
    537549            label='What is the status of this project?', 
    538550            label_msgid="label_oatsStatus", 
    539             description='{REVIEWER ONLY} Select the status that this project falls under.', 
     551            description='Select the status that this project falls under.', 
    540552            description_msgid="help_OatsStatus", 
    541553            i18n_domain="plonesoftwarecenter", 
     
    546558    LinesField( 
    547559        name='priorities', 
     560        schemata='Reviewer', 
    548561        multiValued=1, 
    549562        required=0, 
     
    555568            label='Priorities', 
    556569            label_msgid="label_priorities", 
    557             description='{REVIEWER ONLY} Development priority of this project.', 
     570            description='Development priority of this project.', 
    558571            description_msgid="help_priorities", 
    559572            i18n_domain="plonesoftwarecenter", 
     
    563576    LinesField( 
    564577        name='planguage', 
     578        schemata='Advanced Information', 
    565579        multiValued=1, 
    566580        vocabulary='getPLanguageVocab', 
     
    577591 
    578592    StringField( 
     593        name='documentationLink', 
     594        schemata='Advanced Information', 
     595        searchable=1, 
     596        required=0, 
     597        validators=('isURL',), 
     598        widget=StringWidget( 
     599            label="URL of documentation repository", 
     600            label_msgid="label_package_documentation", 
     601            description="Either the documentation itself, or a documentation page, if it exists.", 
     602            description_msgid="help_package_documentation", 
     603            i18n_domain="plonesoftwarecenter", 
     604        ), 
     605    ), 
     606         
     607    StringField( 
    579608        name='repository', 
     609        schemata='Advanced Information', 
    580610        searchable=1, 
    581611        required=0, 
    582612        validators=('isURL',), 
    583613        widget=StringWidget( 
    584             visible = {'edit':'hidden', 'view':'invisible'}, 
    585614            label="URL of version control repository", 
    586615            label_msgid="label_package_repository", 
     
    594623    StringField( 
    595624        name='tracker', 
     625        schemata='Advanced Information', 
    596626        searchable=1, 
    597627        required=0, 
     
    608638    StringField( 
    609639        name='mailingList', 
     640        schemata='Advanced Information', 
    610641        searchable=1, 
    611642        required=0, 
     
    622653    ImageField( 
    623654        name='logo', 
     655        schemata='Essential Information', 
    624656        required=0, 
    625657        original_size=(150,75), 
     
    636668    StringField( 
    637669        name='logoURL', 
     670        schemata='Essential Information', 
    638671        searchable=1, 
    639672        required=0, 
     
    650683    ImageField( 
    651684        name='screenshot', 
     685        schemata='Essential Information', 
    652686        required=0, 
    653687        original_size=(800,600), 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/listing.pt

    r28 r48  
    5858                <dl> 
    5959                  <tal:package tal:repeat="package packages"> 
    60                     <dt> 
     60                   
     61                    <dt tal:condition="package/getLogo"> 
     62                      <a tal:attributes="href package/getURL"> 
     63                      <img tal:replace="structure package/getLogo" /> 
     64                      </a>  
     65                   </dt> 
     66                   <dt tal:condition="not: package/getLogo"> 
     67                      <a tal:attributes="href package/getURL"> 
    6168                      <img tal:replace="structure here/product_icon.gif" /> 
    62                       <a tal:attributes="href package/getURL" tal:content="package/Title">Title</a> 
    63                       </dt> 
    64                       <dd tal:content="package/Description">Description</dd> 
     69                      </a> 
     70                   </dt>                    
     71                   <dt> 
     72                   <a tal:attributes="href package/getURL" tal:content="package/Title">Title</a>        
     73                   </dt>                       
     74 
     75                    <dd tal:content="package/Description">Description</dd> 
    6576                  </tal:package> 
    6677                </dl> 
  • trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/oats_view.pt

    r32 r48  
    9191                       tal:attributes="href string:${here/absolute_url}/browse/Repository/Need" 
    9292                       i18n:translate="" > 
    93                         Browse software based on the need that it meets (plain view |  
     93                        Browse software based on the need that it meets  
     94                    <img tal:replace="structure here/simple_icon.gif" alt="simple view"/> 
    9495                    </a> 
    9596 
     
    9798                       tal:attributes="href string:${here/absolute_url}/psc_browse/Repository/Need" 
    9899                       i18n:translate="" > 
    99                         enhanced view) 
     100                       <img tal:replace="structure here/enhanced_icon.gif" alt="enhanced view"/> 
     101 
    100102                    </a>                     
    101103            </h3> 
     
    106108                       tal:attributes="href string:${here/absolute_url}/browse/Repository/Function" 
    107109                       i18n:translate=""> 
    108                         Browse software by the type of software (plain view |  
     110                        Browse software by the type of software  
     111                    <img tal:replace="structure here/simple_icon.gif" alt="simple view"/> 
    109112                    </a> 
    110113 
     
    112115                       tal:attributes="href string:${here/absolute_url}/psc_browse/Repository/Function" 
    113116                       i18n:translate=""> 
    114                         enhanced view) 
     117                        <img tal:replace="structure here/enhanced_icon.gif" alt="enhanced view"/> 
    115118                    </a>                     
    116119            </h3> 
  • trunk/PloneSoftwareCenter/version.txt

    r46 r48  
    1 1.0 beta 7  PSC2.1 Integration branch - OATS beta 41 
     11.0 beta 7  PSC2.1 Integration branch - OATS beta 48