Changeset 1540 for WAeUP_SRP/trunk/skins
- Timestamp:
- 14 Mar 2007, 11:48:01 (18 years ago)
- Location:
- WAeUP_SRP/trunk/skins/waeup_pins
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_pins/batch_view.pt
r1520 r1540 30 30 <table tal:condition="info/used"> 31 31 <tr tal:repeat="pin info/used"> 32 <td tal:content="python:path('repeat/pin/index')+1" />33 <td width="50px"> <span tal:content="pin/serial" /> :</td>32 <td tal:content="python:path('repeat/pin/index')+1">: </td> 33 <td width="50px"> <span tal:content="pin/serial" /></td> 34 34 <td tal:content="pin/pin" /> 35 35 <td tal:content="pin/student_id" /> -
WAeUP_SRP/trunk/skins/waeup_pins/disable_pins.py
r1082 r1540 36 36 uid = res[0].pin 37 37 dict = {"pin": uid, 38 "student": "disabled by :%s on %s" % (member,current)38 "student": "disabled by %s on %s" % (member,current) 39 39 } 40 40 pincat.modifyRecord(**dict) -
WAeUP_SRP/trunk/skins/waeup_pins/search_pins.py
r1401 r1540 39 39 not_found.append(item) 40 40 return not_found 41 41 42 42 def set_used_pins(items, from_cat=False): 43 43 l = [] … … 55 55 pin = i.get('pin') 56 56 item['student'] = sno 57 item['prefix'] = prefix 57 item['prefix'] = prefix 58 58 item['serial'] = serial 59 59 if len(sno) > 0: … … 79 79 if sno.startswith('disabled'): 80 80 item['student_url'] = None 81 item['student_id'] = '' 81 82 else: 82 83 item['student_url'] = '%s/campus/students/%s' % (context.portal_url(),item['student']) 83 item['student_id'] = item['student']84 item['student_id'] = item['student'] 84 85 else: 85 86 item['student_url'] = '' … … 104 105 #from Products.zdb import set_trace;set_trace() 105 106 if context.portal_type == "ScratchCardBatch": 106 info['batch_doc'] = context.getContent() 107 info['batch_doc'] = context.getContent() 107 108 info['used'] = set_used_pins(info['batch_doc'].getUsedPins()) 108 109 info['unused'] = info['batch_doc'].getUnusedPins() … … 140 141 else: 141 142 items = [] 142 143 143 144 info['used'] = set_used_pins(items,from_cat=True) 144 145
Note: See TracChangeset for help on using the changeset viewer.