Commits

Show all
Author Commit Message Labels Comments Date
rgrp
Show tags on package read action and refactor that page a little at same time (move from list to simple paragraphs and put attribute names in <strong>).
Tags
ckan-0.2
rgrp
bugfix: fix support for adding a tag on a package via the web interface when tag does not already exist. * forms/__init__.py, tests/forms/test_package.py: Change PackageSchema._update_tags to use Package.add_tag_by_name * models/package.py: Only add tag if that tag not already attached (so we don't get duplicate tags on a given package)
rgrp
micro: couple of tweaks to template text. * trunk/ckan/templates/layout.html: Get rid of 'Primary Side Bar Goes Here' placeholder text * trunk/ckan/templates/home.html: Fix grammar in last para on page
rgrp
ckan2/trunk/README.txt: Updated installation and setup instructions following experience deploying on test.ckan.net.
rgrp
Add an edit link on the package read page.
rgrp
Minor fix to home page text.
rgrp
Add py:strip="" on layout templates to get rid of repeated <html> tags. * TODO: also had to remove DOCTYPE declaration and not sure how to get it back in a genshi compatible way.
rgrp
Simplify 'new' package action and improve by adding proper validation. * trunk/ckan/forms/__init__.py, trunk/ckan/tests/forms/test_package.py: * UniquePackageName: new validator * LowerCase: new lower case validator * package_name_validator: string a bunch of validators together using All * PackageNameSchema: schema using package_name_validator * trunk/ckan/controllers/package.py, trunk/ckan/templates/package/create.html, trunk/ckan/templates/package/ne…
rgrp
Add 'tags' fields on edit form and add functional test.
rgrp
Change package controller update action to use new PackageSchema. * controllers/package.py * edit: use PackageSchema.to_python method to replace previous by-hand updating * forms/__init__.py: When splitting tag string use simple split() rather than split(' ') to avoid errors with empty string ''
rgrp
* models/test_package.py: Minor: adding a new unittest * test_add_tag_by_name_existing * Change to use unicode for tag names
rgrp
Improve PackageSchema by adding support license and improving tag support. * ckan/forms/__init__.py, ckan/tests/forms/test_package.py: Improve Pacakge schema * from_python: Add support for licenses * to_python: * support for licenses * better support for license (proper updating of list not just adding new tags) * new tests for all of this + test refactoring
rgrp
Add tag processing support to PackageSchema. * forms/__init__.py, tests/forms/test_package.py: * PackageSchema.from_python: will now return a tags field containing the tags as a string. * PackageSchema.to_python: will accept a string of tags and insert appropriately.
rgrp
Add missing __init__ files for models and forms test packages. This omission was not causing a problem before because py.test is very robust. However now is causing some tests to be skipped because there are two modules named test_package.py.
rgrp
Start on improving ckan.forms.PackageSchema to handle stuff such as tags and licenses. * ckan/forms/__init__.py: Override get_current function to convert tags to a space separated string of tag names. * ckan/tests/forms, ckan/tests/forms/test_package.py: Start on a basic unittest include test for tag stuff
rgrp
Proper solution to problem with many-to-many entries not being deleted by creating explicit 'join' tables (*not* sovled in previous commit as hoped). * models/__init__.py, models/package.py: SQLObject does not allow you to create 'cascade' constraints on RelatedJoin columns. Thus if one wants proper behaviour for many-to-many relationships (i.e. entry in join table deleted when either of referenced objects deleted) one needs to create explicit join table oneself. * PackageTag: for Package *---* Tag * LicenseTag: Package *---* Licens…
rgrp
Document weird bug found as a result of bizarre failure in tag.packages listing. * trunk/ckan/tests/functional/test_tag.py: micro improvement to list unittest. * trunk/ckan/tests/models/test_package.py: * Correct missing deletion of geodata TestPackageWithTags which was leading to bizarre error on tag list * Document the weird behaviour with a unit test.
rgrp
Create major navigation item 'Tags' linking to tag index page in layout template.
rgrp
Added support for licenses in the web interface. This turned out to be rather complicated than expected due to bugs in genshi (multiple attribute is stripped off select tags) and fact that you cannot use to_python from_python stuff when you have MultipleJoins. * trunk/ckan/controllers/package.py, trunk/ckan/templates/package/edit_form.html: edit and update now support licenses select field * trunk/ckan/templates/package/read.html: display…
rgrp
Sort out License domain object. * trunk/ckan/models/__init__.py: * DomainModel: create all OSI approved licenses, 3 OKD compliant licenses and a non-compliant license item in init() * trunk/ckan/models/package.py * License: add 'name' attribute and RelatedJoin packages * Package: add RelatedJoin to License * generally add _defaultOrder = 'name' where appropriate * trunk/ckan/tests/models/test_package.py: add TestLicense…
rgrp
Add list action on tag controller and associated tests and template.
rgrp
Add tag read action. * trunk/bin/ckan-admin: do rebuild automatically as part of testdata action * trunk/ckan/tests/__init__.py: tag stuff * create_test_data: add tag creation and addition of tags to packages * trunk/ckan/controllers/tag.py, trunk/ckan/templates/tag/read.html, trunk/ckan/tests/functional/test_tag.py: show a tag and associated list of packages.
rgrp
Create tag layout template and index page template and put under test.
rgrp
Create tag controller (paster controller tag + a few minor modifications to get test passing).
rgrp
Tidy up setup.py and README.txt. * setup.py: add various attributes (author, license etc) * README.txt: stuff about using twill and link to MIT license
rgrp
Add Tag object to the domain model. * trunk/development.ini: change to postgres db as sqlite's lack of ForeignKey was causing problems for unit tests. Specifically Package - Tag RelatedJoin was not working properly in that when you deleted a package or a tag it was not removing related stuff from join table. * trunk/ckan/models/package.py: * Tag: add class * Package: * tags: new RelatedJoin attribute * add_ta…
rgrp
Some smallist fixes to base and package layout templates. * trunk/ckan/templates/layout.html, trunk/ckan/public/css/display.css: work on footer * insert open knowledge button and redo text and layout * remove home item from minor navigation * trunk/ckan/templates/package/layout.html: add New and Home item to minor navigation * trunk/ckan/templates/package/index.html: redo text to have link to list of packages and new package page * trunk/ckan/test…
rgrp
Simplify domain model by removing package versioning (so back to simple setup).
rgrp
Minor tidying to domain model. * trunk/ckan/models/package.py * User: remove * Revision: * change message attribute to log * add attributes author and date * trunk/ckan/tests/models/test_package.py: update tests to reflect changes to package * trunk/ckan/models/__init__.py: removal of User
rgrp
* ckan-admin: rebuild method * update to use ckan.models.dm (reflecting oldish change)
  1. Prev
  2. Next