Last change
on this file since 678 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
|
Line | |
---|
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 | """ |
---|
12 | return Info about the current Student |
---|
13 | """ |
---|
14 | |
---|
15 | info = {} |
---|
16 | if batch is None: |
---|
17 | if context.portal_type == 'ScratchCardBatch': |
---|
18 | batch = context |
---|
19 | else: |
---|
20 | return None |
---|
21 | info['batch_doc'] = batch.getContent() |
---|
22 | info['id'] = batch.getId() |
---|
23 | info['title'] = batch.Title or 'empty Title' |
---|
24 | info['unused'] = batch.getContent().getUnusedPins() |
---|
25 | return info |
---|
Note: See
TracBrowser for help on using the repository browser.