[open-ils-commits] r1093 - servres/trunk/conifer/syrup/views (artunit)
svn at svn.open-ils.org
svn at svn.open-ils.org
Mon Nov 29 23:44:23 EST 2010
Author: artunit
Date: 2010-11-29 23:44:20 -0500 (Mon, 29 Nov 2010)
New Revision: 1093
Modified:
servres/trunk/conifer/syrup/views/items.py
Log:
url fields now stored
Modified: servres/trunk/conifer/syrup/views/items.py
===================================================================
--- servres/trunk/conifer/syrup/views/items.py 2010-11-29 03:08:05 UTC (rev 1092)
+++ servres/trunk/conifer/syrup/views/items.py 2010-11-30 04:44:20 UTC (rev 1093)
@@ -111,6 +111,9 @@
elif item_type == 'URL':
title = request.POST.get('title', '').strip()
url = request.POST.get('url', '').strip()
+ author = request.POST.get('author', '').strip()
+ publisher = request.POST.get('publisher', '').strip()
+ published = request.POST.get('published', '').strip()
if not (title and url):
# fixme, better error handling.
return HttpResponseRedirect(request.get_full_path())
@@ -120,7 +123,10 @@
item_type='URL',
parent_heading=parent_item,
title=title,
- url = url)
+ url = url,
+ author = author,
+ publisher = publisher,
+ published = published)
item.save()
elif item_type == 'ELEC':
title = request.POST.get('title', '').strip()
More information about the open-ils-commits
mailing list