[ckan-changes] [okfn/ckan] 3e5b2f: [xs] Revert change to create_test_data, unnecessar...

GitHub noreply at github.com
Wed Apr 25 11:24:37 UTC 2012


  Branch: refs/heads/master
  Home:   https://github.com/okfn/ckan
  Commit: 3e5b2f58b35cc4a7e6686b815a77eb212eea6027
      https://github.com/okfn/ckan/commit/3e5b2f58b35cc4a7e6686b815a77eb212eea6027
  Author: John Glover <j at johnglover.net>
  Date:   2012-04-25 (Wed, 25 Apr 2012)

  Changed paths:
    M ckan/lib/create_test_data.py

  Log Message:
  -----------
  [xs] Revert change to create_test_data, unnecessary


diff --git a/ckan/lib/create_test_data.py b/ckan/lib/create_test_data.py
index 6f73e55..44d5c64 100644
--- a/ckan/lib/create_test_data.py
+++ b/ckan/lib/create_test_data.py
@@ -173,8 +173,8 @@ def create_vocabs_test_data(cls):
 
     @classmethod
     def create_arbitrary(cls, package_dicts, relationships=[],
-                         extra_user_names=[], extra_group_names=[],
-                         admins=[], extra_core_fields=[]):
+            extra_user_names=[], extra_group_names=[],
+            admins=[]):
         '''Creates packages and a few extra objects as well at the
         same time if required.
         @param package_dicts - a list of dictionaries with the package
@@ -196,8 +196,6 @@ def create_arbitrary(cls, package_dicts, relationships=[],
         new_group_names = set()
         new_groups = {}
 
-        cls.pkg_core_fields.extend(extra_core_fields)
-
         rev = model.repo.new_revision()
         rev.author = cls.author
         rev.message = u'Creating test packages.'


================================================================



More information about the ckan-changes mailing list