/[glsr]/trunk/htdocs/admin/panel.py
Gentoo

Diff of /trunk/htdocs/admin/panel.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 177 Revision 178
195 edit_category = key[5:] 195 edit_category = key[5:]
196 196
197 if edit_category == 0 and self._harm.request.forms.has_key("save"): 197 if edit_category == 0 and self._harm.request.forms.has_key("save"):
198 category_id = self._harm.request.forms.getvalue("category_id") 198 category_id = self._harm.request.forms.getvalue("category_id")
199 name = self._harm.request.forms.getvalue("name") 199 name = self._harm.request.forms.getvalue("name")
200 descr = self._harm.request.forms.getvalue("descr") 200 descr = self._harm.request.forms.getvalue("descr", "")
201 201
202 if category_id == "0": 202 if category_id == "0":
203 category.create(name, descr) 203 category.create(name, descr)
204 else: 204 else:
205 cat_obj = category.Category(category_id) 205 cat_obj = category.Category(category_id)

Legend:
Removed from v.177  
changed lines
  Added in v.178

  ViewVC Help
Powered by ViewVC 1.1.20