summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3a924cd)
raw | patch | inline | side by side (parent: 3a924cd)
author | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 23:38:41 +0000 (23:38 +0000) | ||
committer | richard <richard@57a73879-2fb5-44c3-a270-3262357dd7e2> | |
Mon, 9 Sep 2002 23:38:41 +0000 (23:38 +0000) |
git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1103 57a73879-2fb5-44c3-a270-3262357dd7e2
roundup/cgi/client.py | patch | blob | history | |
roundup/templates/classic/html/issue.item | patch | blob | history |
diff --git a/roundup/cgi/client.py b/roundup/cgi/client.py
index a0c55271b1d30ef0d409ad646858c1548806fbd4..f4485b1cbf299e2463f5f7e0e3f6d8fabe7c47a4 100644 (file)
--- a/roundup/cgi/client.py
+++ b/roundup/cgi/client.py
-# $Id: client.py,v 1.23 2002-09-09 04:43:10 richard Exp $
+# $Id: client.py,v 1.24 2002-09-09 23:38:41 richard Exp $
__doc__ = """
WWW request handler (also used in the stand-alone server).
:multilink=designator:property
The value specifies a node designator and the property on that
node to add _this_ node to as a link or multilink.
- __note
+ :note
Create a message and attach it to the current node's
"messages" property.
- __file
+ :file
Create a file and attach it to the current node's
"files" property. Attach the file to the message created from
- the __note if it's supplied.
+ the :note if it's supplied.
:required=property,property,...
The named properties are required to be filled in the form.
if props:
message = _('%(changes)s edited ok')%{'changes':
', '.join(props.keys())}
- elif self.form.has_key('__note') and self.form['__note'].value:
+ elif self.form.has_key(':note') and self.form[':note'].value:
message = _('note added')
- elif (self.form.has_key('__file') and self.form['__file'].filename):
+ elif (self.form.has_key(':file') and self.form[':file'].filename):
message = _('file added')
else:
message = _('nothing changed')
'''
# handle file attachments
files = []
- if self.form.has_key('__file'):
- file = self.form['__file']
+ if self.form.has_key(':file'):
+ file = self.form[':file']
if file.filename:
filename = file.filename.split('\\')[-1]
mime_type = mimetypes.guess_type(filename)[0]
note = None
# in a nutshell, don't do anything if there's no note or there's no
# NOSY
- if self.form.has_key('__note'):
- note = self.form['__note'].value.strip()
+ if self.form.has_key(':note'):
+ note = self.form[':note'].value.strip()
if not note:
return None, files
if not props.has_key('messages'):
which issue to link the file to.
TODO: I suspect that this and newfile will go away now that
- there's the ability to upload a file using the issue __file form
+ there's the ability to upload a file using the issue :file form
element!
'''
cn = self.classname
index 225ef2fdab4e9411215b225054bb3ec845bb36de..aacb0e0a52d2c39c17237c8c85729e5224235259 100644 (file)
<tr>
<th nowrap>Change Note</th>
<td colspan=3>
- <textarea name="__note" wrap="hard" rows="5" cols="60"></textarea>
+ <textarea name=":note" wrap="hard" rows="5" cols="60"></textarea>
</td>
</tr>
<tr>
<th nowrap>File</th>
- <td colspan=3><input type="file" name="__file" size="40"></td>
+ <td colspan=3><input type="file" name=":file" size="40"></td>
</tr>
<tr>