source: WAeUP_SRP/trunk/skins/waeup_pins/getBatchInfo.py @ 611

Last change on this file since 611 was 535, checked in by joachim, 18 years ago

student apply admission should work now
the default_view for campus is now home_index.py
for students and student student_index.py
these script redirect to the appropriate PT

File size: 607 bytes
RevLine 
[535]1## Script (Python) "cpsdocument_edit"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=batch=None
8##title=
9##
10# $Id: student_edit.py 486 2006-09-06 10:09:39Z joachim $
11"""
12return Info about the current Student
13"""
14
15info = {}
16if batch is None:
17    if context.portal_type == 'ScratchCardBatch':
18        batch = context
19    else:
20        return None
21info['batch_doc'] = batch.getContent()
22info['id'] = batch.getId()
23info['title'] = batch.Title or 'empty Title'
24info['unused'] = batch.getContent().getUnusedPins()
25return info
Note: See TracBrowser for help on using the repository browser.