[ckan-changes] commit/ckanext-datano: sebbacon: make title required

Bitbucket commits-noreply at bitbucket.org
Mon Jun 6 16:54:14 UTC 2011


1 new changeset in ckanext-datano:

http://bitbucket.org/okfn/ckanext-datano/changeset/a8a10b2997af/
changeset:   a8a10b2997af
branches:    
user:        sebbacon
date:        2011-06-06 18:53:35
summary:     make title required
affected #:  1 file (106 bytes)

--- a/ckanext/datano/package_datano.py	Thu Apr 14 01:11:40 2011 +0200
+++ b/ckanext/datano/package_datano.py	Mon Jun 06 17:53:35 2011 +0100
@@ -1,5 +1,6 @@
 import formalchemy
 from formalchemy import helpers as h
+from formalchemy.validators import required
 from sqlalchemy.util import OrderedDict
 from pylons.i18n import _, gettext
 
@@ -109,6 +110,7 @@
     # Options/settings
     builder.set_field_option('tags', 'with_renderer', SuggestTagRenderer)
     builder.set_field_option('notes_en', 'textarea', {'size':'60x15'})
+    builder.set_field_option('title', 'validate', required)
     
     if restrict:
         for field_name in ('name', 'department', 'national_statistic'):

Repository URL: https://bitbucket.org/okfn/ckanext-datano/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.




More information about the ckan-changes mailing list