|
15 | 15 | # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE, |
16 | 16 | # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. |
17 | 17 | # |
18 | | -# $Id: cgi_client.py,v 1.103 2002-02-20 05:05:28 richard Exp $ |
| 18 | +# $Id: cgi_client.py,v 1.104 2002-02-20 05:45:17 richard Exp $ |
19 | 19 |
|
20 | 20 | __doc__ = """ |
21 | 21 | WWW request handler (also used in the stand-alone server). |
@@ -371,12 +371,13 @@ def basicClassEditPage(self): |
371 | 371 | w('</tt>') |
372 | 372 |
|
373 | 373 | w('<form onSubmit="return submit_once()" method="POST">') |
374 | | - w('<textarea name="rows" cols=80 rows=15>') |
| 374 | + w('<textarea name="rows" cols=80 rows=15>') |
| 375 | + p = csv.parser() |
375 | 376 | for nodeid in cl.list(): |
376 | 377 | l = [] |
377 | 378 | for name in props: |
378 | 379 | l.append(cgi.escape(str(cl.get(nodeid, name)))) |
379 | | - w(', '.join(l) + '\n') |
| 380 | + w(p.join(l) + '\n') |
380 | 381 |
|
381 | 382 | w(_('</textarea><br><input type="submit" value="Save Changes"></form>')) |
382 | 383 |
|
@@ -1287,6 +1288,12 @@ def parsePropsFromForm(db, cl, form, nodeid=0): |
1287 | 1288 |
|
1288 | 1289 | # |
1289 | 1290 | # $Log: not supported by cvs2svn $ |
| 1291 | +# Revision 1.103 2002/02/20 05:05:28 richard |
| 1292 | +# . Added simple editing for classes that don't define a templated interface. |
| 1293 | +# - access using the admin "class list" interface |
| 1294 | +# - limited to admin-only |
| 1295 | +# - requires the csv module from object-craft (url given if it's missing) |
| 1296 | +# |
1290 | 1297 | # Revision 1.102 2002/02/15 07:08:44 richard |
1291 | 1298 | # . Alternate email addresses are now available for users. See the MIGRATION |
1292 | 1299 | # file for info on how to activate the feature. |
|
0 commit comments