[ckan-changes] commit/ckanext-exampletheme: dread: [form]: Get form working with CKAN 1.4.1 (formalchemy deprecated).

Bitbucket commits-noreply at bitbucket.org
Tue Jun 28 12:01:25 UTC 2011


1 new changeset in ckanext-exampletheme:

http://bitbucket.org/okfn/ckanext-exampletheme/changeset/22f74f9ecd8a/
changeset:   22f74f9ecd8a
user:        dread
date:        2011-06-28 14:01:16
summary:     [form]: Get form working with CKAN 1.4.1 (formalchemy deprecated).
affected #:  2 files (186 bytes)

--- a/ckanext/exampletheme/package_form.py	Mon Apr 04 12:45:59 2011 +0100
+++ b/ckanext/exampletheme/package_form.py	Tue Jun 28 14:01:16 2011 +0200
@@ -22,7 +22,7 @@
 
     # Layout
     field_groups = OrderedDict([
-        (_('Basic information'), ['title', 'name', 'url',
+        (_('Customised Basic information'), ['title', 'name', 'url',
                                   'notes', 'tags']),
         (_('Details'), ['author', 'author_email', 'groups',
                         'maintainer', 'maintainer_email',


--- a/ckanext/exampletheme/plugin.py	Mon Apr 04 12:45:59 2011 +0100
+++ b/ckanext/exampletheme/plugin.py	Tue Jun 28 14:01:16 2011 +0200
@@ -87,4 +87,6 @@
                     '/user/register',
                     controller='ckanext.exampletheme.controller:CustomUserController',
                     action='custom_register')
+        map.connect('/package/new', controller='package_formalchemy', action='new')
+        map.connect('/package/edit/{id}', controller='package_formalchemy', action='edit')
         return map

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

--

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