Changeset 48
- Timestamp:
- 27/01/06 16:08:30
- Files:
-
- trunk/PloneSoftwareCenter/content/PSCProject.py (modified) (2 diffs)
- trunk/PloneSoftwareCenter/content/schemata.py (modified) (22 diffs)
- trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/listing.pt (modified) (1 diff)
- trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/oats_view.pt (modified) (4 diffs)
- trunk/PloneSoftwareCenter/version.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/PloneSoftwareCenter/content/PSCProject.py
r46 r48 61 61 62 62 typeDescMsgId = 'description_edit_package' 63 typeDescription = ('Please use the form below to enter details about the project you would like to submit. I t 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.') 64 64 65 65 security.declarePrivate('initializeArchetype') … … 80 80 81 81 #SETUP the default content of the Project Folder 82 83 #self.invokeFactory(id='Poll', type_name='PlonePopoll', title=self.title_or_id()+' Poll')84 82 self.invokeFactory(id='Poll', type_name='PlonePopoll', title=config.POLL_ID) 85 83 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) 88 85 poll.setPollOptions(question='How would you rate this project?', choices=['1', '2', '3', '4', '5'], choices_number=1, check_multi=1) 89 86 poll.enable() 90 87 poll.setVisible() 91 88 92 #self.invokeFactory(id='FAQ', type_name='FAQTheme', title=self.title_or_id()+' FAQ', description='Frequently asked questions on '+self.title_or_id()+'.')93 89 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) 94 92 95 #self.invokeFactory(id='PoiPscTracker', type_name='PoiPscTracker', title=self.title_or_id()+' Bug Tracker', description=self.title_or_id()+' Bug Tracker')96 93 #self.invokeFactory(id='PoiPscTracker', type_name='PoiPscTracker', title=config.TRACKER_ID, description='Bug Tracker') 97 94 trunk/PloneSoftwareCenter/content/schemata.py
r46 r48 367 367 StringField( 368 368 name='id', 369 schemata='Essential Information', 369 370 required=0, 370 371 searchable=1, … … 376 377 ), 377 378 ), 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 ), 378 392 393 379 394 TextField( 380 395 name='description', 396 schemata='Essential Information', 381 397 default='', 382 398 required=1, … … 396 412 TextField( 397 413 name='text', 414 schemata='Essential Information', 398 415 required=1, 399 416 searchable=1, … … 414 431 LinesField( 415 432 name='categories', 433 schemata='Essential Information', 416 434 multiValued=1, 417 435 required=1, … … 430 448 LinesField( 431 449 name='categories_need', 450 schemata='Essential Information', 432 451 multiValued=1, 433 452 required=1, … … 446 465 StringField( 447 466 name='contactAddress', 467 schemata='Essential Information', 448 468 required=0, 449 469 validators = ('isEmail',), 450 470 widget=StringWidget( 451 label="Contact address", 471 format='select', 472 label="Contact", 452 473 label_msgid="label_package_contact_address", 453 474 description="Email contact for the project. ", … … 459 480 StringField( 460 481 name='homepage', 482 schemata='Essential Information', 461 483 searchable=1, 462 484 required=0, … … 471 493 ), 472 494 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 487 495 BooleanField( 488 496 name='resource_project', 497 schemata='Advanced Information', 489 498 searchable=1, 490 499 default=0, … … 500 509 BooleanField( 501 510 name='request_oats', 511 schemata='Advanced Information', 502 512 searchable=1, 503 513 default=0, … … 514 524 BooleanField( 515 525 name='recommended', 526 schemata='Reviewer', 516 527 accessor="isRecommended", 517 528 searchable=1, … … 521 532 label="Recommended Project?", 522 533 label_msgid="label_package_recommended", 523 description=" {REVIEWER ONLY} -Recommendation by the project team.",534 description="Recommendation by the project team.", 524 535 description_msgid="help_package_recommended", 525 536 i18n_domain="plonesoftwarecenter", … … 529 540 LinesField( 530 541 name='oats_status', 542 schemata='Reviewer', 531 543 multiValued=1, 532 544 vocabulary='getOatsStatusVocab', … … 537 549 label='What is the status of this project?', 538 550 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.', 540 552 description_msgid="help_OatsStatus", 541 553 i18n_domain="plonesoftwarecenter", … … 546 558 LinesField( 547 559 name='priorities', 560 schemata='Reviewer', 548 561 multiValued=1, 549 562 required=0, … … 555 568 label='Priorities', 556 569 label_msgid="label_priorities", 557 description=' {REVIEWER ONLY}Development priority of this project.',570 description='Development priority of this project.', 558 571 description_msgid="help_priorities", 559 572 i18n_domain="plonesoftwarecenter", … … 563 576 LinesField( 564 577 name='planguage', 578 schemata='Advanced Information', 565 579 multiValued=1, 566 580 vocabulary='getPLanguageVocab', … … 577 591 578 592 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( 579 608 name='repository', 609 schemata='Advanced Information', 580 610 searchable=1, 581 611 required=0, 582 612 validators=('isURL',), 583 613 widget=StringWidget( 584 visible = {'edit':'hidden', 'view':'invisible'},585 614 label="URL of version control repository", 586 615 label_msgid="label_package_repository", … … 594 623 StringField( 595 624 name='tracker', 625 schemata='Advanced Information', 596 626 searchable=1, 597 627 required=0, … … 608 638 StringField( 609 639 name='mailingList', 640 schemata='Advanced Information', 610 641 searchable=1, 611 642 required=0, … … 622 653 ImageField( 623 654 name='logo', 655 schemata='Essential Information', 624 656 required=0, 625 657 original_size=(150,75), … … 636 668 StringField( 637 669 name='logoURL', 670 schemata='Essential Information', 638 671 searchable=1, 639 672 required=0, … … 650 683 ImageField( 651 684 name='screenshot', 685 schemata='Essential Information', 652 686 required=0, 653 687 original_size=(800,600), trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/listing.pt
r28 r48 58 58 <dl> 59 59 <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"> 61 68 <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> 65 76 </tal:package> 66 77 </dl> trunk/PloneSoftwareCenter/skins/plonesoftwarecenter/oats_view.pt
r32 r48 91 91 tal:attributes="href string:${here/absolute_url}/browse/Repository/Need" 92 92 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"/> 94 95 </a> 95 96 … … 97 98 tal:attributes="href string:${here/absolute_url}/psc_browse/Repository/Need" 98 99 i18n:translate="" > 99 enhanced view) 100 <img tal:replace="structure here/enhanced_icon.gif" alt="enhanced view"/> 101 100 102 </a> 101 103 </h3> … … 106 108 tal:attributes="href string:${here/absolute_url}/browse/Repository/Function" 107 109 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"/> 109 112 </a> 110 113 … … 112 115 tal:attributes="href string:${here/absolute_url}/psc_browse/Repository/Function" 113 116 i18n:translate=""> 114 enhanced view)117 <img tal:replace="structure here/enhanced_icon.gif" alt="enhanced view"/> 115 118 </a> 116 119 </h3> trunk/PloneSoftwareCenter/version.txt
r46 r48 1 1.0 beta 7 PSC2.1 Integration branch - OATS beta 4 11 1.0 beta 7 PSC2.1 Integration branch - OATS beta 48
