Changeset 2249 for WAeUP_SRP/base


Ignore:
Timestamp:
17 Sep 2007, 06:49:57 (17 years ago)
Author:
Henrik Bettermann
Message:

revert payment of returning part-time students to scratch card

some stylesheet clean-up

Location:
WAeUP_SRP/base/skins
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_design/common.css.dtml

    r1785 r2249  
    107107padding:3px;
    108108}
    109 input.SearchBox {
    110 background:white url(http://localhost:8080/cpsskins/cpsskins_images/search_icon.png) no-repeat scroll left center;
    111 border:1px inset #757575;
    112 padding:2px 2px 2px 20px;
    113 }
    114 div.searchField {
    115 background:transparent url(http://localhost:8080/cpsskins/cpsskins_images/portlet_search_icon.png) no-repeat scroll left center;
    116 padding:2px 2px 2px 20px;
    117 }
     109
    118110.toggle_icon {
    119111clear:left;
  • WAeUP_SRP/base/skins/waeup_design/stylesheet_properties.props

    r2243 r2249  
     1# TODO: I want comments in this file!
     2
     3plone_skin:string=Nuxeo CPS Default
     4
     5mainFont:string=70% Arial, sans-serif, Verdana, Helvetica
     6mainBackground:string=#ffffff
     7mainFontColor:string=black
     8mainLinkColor:string=#436976
     9mainTabBorderColor:string=#838183
     10mainTabBorderColorSelected:string=#838183
     11mainTabBackground:string=#003a6b
     12mainTabBackgroundNotSelected:string=#9cb2cd
     13# FIXME: remove since it is not used ?
     14#mainTabBackdrop:string=transparent
     15mainTabFontWeight:string=normal
     16mainTabFontColor:string=white
     17mainTabFontColorSelected:string=white
     18
     19headingFont:string=100% Arial, sans-serif, Verdana, Helvetica
     20headingFontColor:string=black
     21headingSize1:string=140%
     22headingSize2:string=130%
     23headingSize3:string=120%
     24headingSize4:string=110%
     25headingSize5:string=105%
     26headingSize6:string=100%
     27
     28descriptionFont:string=100% Arial, sans-serif, Verdana, Helvetica
     29
     30contentFont:string=120% Arial, sans-serif, Verdana, Helvetica
     31contentBackground:string=White
     32contentImageBorder:string=0
     33contentLinkActiveColor:string=Red
     34contentLinkVisitedColor:string=Purple
     35# FIXME: remove since it is not used ?
     36#contentTabBorder:string=1px solid #74ae0b
     37contentTabBackground:string=#cde2a7
     38contentTabBackgroundNotSelected:string=transparent
     39contentTabBackdrop:string=transparent
     40contentTabFontWeight:string=normal
     41contentTabFontColor:string=#578308
     42contentTabFontColorSelected:string=#578308
     43
     44preBorder:string=0px none
     45preBackground:string=#eeeeee
     46
     47messageFont:string=normal 110% Arial, sans-serif, Verdana, Helvetica
     48messageBackground:string=#ffca31
     49messageBorder:string=2px solid #333333
     50
     51textTransform:string=none
     52noBorder:string=none
     53groupBorder:string=0px none transparent
     54requiredField:string=url(required.png) right no-repeat
     55
     56inputFont:string=100% Arial, sans-serif, Verdana, Helvetica
     57inputBorder:string=1px inset #757575
     58# FIXME: not used
     59#inputBackground:string=#f7f9fa
     60
     61buttonBackground:string=#ffffff 4px 4px no-repeat
     62buttonBackgroundHover:string=#e7e7e7 url(buttonbg_bc.png) bottom left repeat-x
     63buttonBorder:string=1px outset #757575
     64
     65contextButtonBackground:string=#ffffff url(buttonbg_e7.png) bottom left repeat-x
     66contextButtonBackgroundHover:string=#e7e7e7 url(buttonbg_bc.png) bottom left repeat-x
     67contextButtonPadding:string=2px 5px 2px 5px
     68contextButtonFontColor:string=#454545
     69contextButtonBorder:string=1px outset #999999
     70
     71standaloneButtonBackground:string=#ffffff url(buttonbg_e7.png) bottom left repeat-x
     72standaloneButtonBackgroundHover:string=#e7e7e7 url(buttonbg_bc.png) bottom left repeat-x
     73standaloneButtonPadding:string=2px 5px 2px 5px
     74standaloneButtonFontColor:string=#454545
     75standaloneButtonBorder:string=1px outset #999999
     76
     77destructiveButtonBackground:string=#ffffff url(buttonbg_e7.png) bottom left repeat-x
     78destructiveButtonBackgroundHover:string=#e7e7e7 url(buttonbg_bc.png) bottom left repeat-x
     79destructiveButtonPadding:string=2px 5px 2px 5px;
     80destructiveButtonBorder:string=1px outset #757575;
     81destructiveButtonBorderHover:string=1px solid #ff0000
     82destructiveButtonFontColor:string=#454545
     83
     84moveUpButtonBackground:string=white url(buttonbg_e7.png) bottom left repeat-x
     85moveDownButtonBackground:string=white url(buttonbg_e7.png) bottom left repeat-x
     86moveTopButtonBackground:string=white url(buttonbg_e7.png) bottom left repeat-x
     87moveBottomButtonBackground:string=white url(buttonbg_e7.png) bottom left repeat-x
     88
     89buttonWeight:string=normal
     90
     91boxBorder:string=0px solid #838183
     92boxHeaderBackground:string=#003a6b
     93boxHeaderFontColor:string=white
     94# FIXME: Not used
     95#boxLinkBackground:string=transparent
     96#boxLinkColor:string=#436976
     97boxEvenBackground:string=#eeeeee
     98boxOddBackground:string=white
     99boxHighlight:string=2px solid #ffa500
     100
     101# FIXME: Not used
     102#listingBorder:string=1px solid #838183
     103#listingHeaderBackground:string=#003a6b
     104#listingHeaderFontColor:string=black
     105#listingLinkHover:string=underline
     106
     107topBackground:string=#ffffff
     108topMargin:string=0
     109topPadding:string=0
     110
     111logoMargin:string=0.2em 0em 0.3em 1em
     112logoPadding:string=0
     113
     114searchMargin:string=0
     115searchPadding:string=0
     116searchFontColor:string=black
     117
     118footerBackground:string=#eeeeee
     119footerBorder:string=1px solid #003a6b
     120
     121columnsLeftBackground:string=#9cb2cd
     122columnsRightBackground:string=#eeeeee url('rightcol_bg.png') repeat-y
     123
     124columnsLeftBackgroundNS4:string=#9cb2cd
     125columnsRightBackgroundNS4:string=#eeeeee
     126
     127workspaceBackground:string=#cde2a7
     128workspaceBackgroundSelected:string=#297b28
     129urlFontColor:string=#666666
     130
     131legendFontSize:string=80%
     132
     133# Layout properties used to display listing type tables (this layout is used for
     134# history and subscriptions tables).
     135listingHeaderBackground:string=#003a6b
     136listingHeaderColor:string=white
     137listingCellBackground:string=#eeeeee
     138listingCellColor:string=black
     139listingCellOddBackground:string=#ffffff
     140listingCellOddColor:string=black
     141listingCellEvenBackground:string=#eeeeee
     142listingCellEvenColor:string=black
     143
     144# Layout properties used to display RSS/Syndication logos (those logos
     145# typically appear in each box).
     146rssBorder:string=0.1em outset #ff6600
     147rssBackground:string=#ff6600
     148rssColor:string=#ffffff
     149rssFont:string=bold 70% 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif
     150
     151# Layout properties used to display Atom/Syndication logos (those logos
     152# typically appear in each box).
     153atomBorder:string=0.1em outset #ff6600
     154atomBackground:string=#ff6600
     155atomColor:string=#ffffff
     156atomFont:string=bold 70% 'Lucida Grande', Verdana, Geneva, Lucida, Arial, Helvetica, sans-serif
     157
     158inheritedRole:string=#ffff99
     159inheritedBlockedRole:string=#ff9999
  • WAeUP_SRP/base/skins/waeup_epayment/getPaymentsFolderInfo.py

    r2165 r2249  
    5656online_payment = False
    5757sc_payment = False
    58 if review_state == 'cleared_and_validated' or (parttime and review_state == 'returning'):
     58
     59#if review_state == 'cleared_and_validated' or (parttime and review_state == 'returning'):
     60#    online_payment = True
     61#elif fulltime and review_state == 'returning':
     62#    sc_payment = True
     63
     64if review_state == 'cleared_and_validated':
    5965    online_payment = True
    60 elif fulltime and review_state == 'returning':
     66elif review_state == 'returning':
    6167    sc_payment = True
     68
    6269info['online_payment'] = online_payment
    6370info['sc_payment'] = sc_payment
  • WAeUP_SRP/base/skins/waeup_student/search_students.py

    r1845 r2249  
    1414import logging
    1515logger = logging.getLogger('Skins.search_students')
    16 from DateTime import DateTime
     16#from DateTime import DateTime
    1717#
    1818#with_timer = True
    19 with_timer = False
     19#with_timer = False
    2020#
    2121request = REQUEST
     
    203203
    204204if only_review or with_review or co_view:
    205     if with_timer:
    206         start = DateTime().timeTime()
    207         logger.info('"%s","start 100"' % member)
    208205    query = Eq('review_state',state)
    209206    review_res = aq_portal(query)
     
    211208    logger.info('%s searches for students in review_state %s' % (member,state))
    212209
    213     if with_timer:
    214         end = DateTime().timeTime()
    215         logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    216210if co_view:
    217211    only_review = False
    218212    with_review = True
    219     if with_timer:
    220         start = DateTime().timeTime()
    221         logger.info('"%s","start 200"' % member)
    222213    query = In('faculty',faculties) | In('department',departments)
    223214    res = aq_students(query)
    224     if with_timer:
    225         end = DateTime().timeTime()
    226         logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    227     start = DateTime().timeTime()
    228215    search_set = [r.id for r in res]
    229     if with_timer:
    230         end = DateTime().timeTime()
    231         logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    232216elif ca_view:
    233217    only_review = False
    234218    with_review = True
    235     if with_timer:
    236         start = DateTime().timeTime()
    237         logger.info('"%s","start 200"' % member)
    238219    courses = [cl.split('/')[0] for cl in certificate_level]
    239220    levels = [cl.split('/')[1] for cl in certificate_level]
    240221    query = In('course',courses) & In('level',levels)
    241222    res = aq_students(query)
    242     if with_timer:
    243         end = DateTime().timeTime()
    244         logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    245         start = DateTime().timeTime()
    246223    search_set = [r.id for r in res]
    247     if with_timer:
    248         end = DateTime().timeTime()
    249         logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    250 if with_timer:
    251     logger.info('"%s","start 300"' % member)
    252     start = DateTime().timeTime()
    253224if review_res:
    254225    review_set = [r.getId for r in review_res]
    255 if with_timer:
    256     end = DateTime().timeTime()
    257     logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    258     logger.info('"%s","start 400"' % member)
    259     start = DateTime().timeTime()
    260226if only_review:
    261227    all = review_set
     
    267233else:
    268234    all = search_set
    269 if with_timer:
    270     end = DateTime().timeTime()
    271     logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    272235items = all[:500]
    273236students = []
    274 if with_timer:
    275     logger.info('"%s","start 500"' % member)
    276     start = DateTime().timeTime()
    277237if items:
    278238    for item in items:
     
    288248        else:
    289249            students.append(info)
    290     if with_timer:
    291         end = DateTime().timeTime()
    292         logger.info('"%s","searchtime","%6.2f"' % (member,end-start))
    293 
    294250    return context.search_students_form(rendered = rend,
    295251                             psm = "",
Note: See TracChangeset for help on using the changeset viewer.