philo.git
14 years agoMerge branch '404_relationship_bugfix' of git://github.com/melinath/philo
Joseph Spiros [Thu, 21 Oct 2010 20:22:11 +0000 (16:22 -0400)]
Merge branch '404_relationship_bugfix' of git://github.com/melinath/philo

* '404_relationship_bugfix' of git://github.com/melinath/philo:
  Removes leftover references to relationships in nodeview error handling and in TreeEntity

14 years agoRemoves leftover references to relationships in nodeview error handling and in TreeEntity
Stephen Burrows [Thu, 21 Oct 2010 20:20:14 +0000 (16:20 -0400)]
Removes leftover references to relationships in nodeview error handling and in TreeEntity

14 years agoMerge branch 'master' of git://github.com/melinath/philo
Joseph Spiros [Thu, 21 Oct 2010 19:59:40 +0000 (15:59 -0400)]
Merge branch 'master' of git://github.com/melinath/philo

* 'master' of git://github.com/melinath/philo:
  Added support for 'editable' to ProxyFields. Tweaked AttributeFieldDescriptor base class to not raise an AttributeError on access. This allows the descriptor to be detected by Django admin validation, allowing the proxy fields to be used (for example) in a ModelAdmin's readonly_fields and list_display fields. This may address the remaining issues in feature #16.
  Tweaked philo migrations to force contenttype creation after migration 0005 so the contenttypes are available in migration 0006. Ordinarily contenttypes are only synced after a complete set of migrations. Also implemented default values on proxy fields; partially addresses feature #16.
  Added unittest for node_url templatetag. Fixed issues uncovered with unittests. Added test fixture. Seems bugfree - as such, addresses feature #12.
  Initial node_url_refactor commit. Revises node_url templatetag to accept args/kwargs like urlnode, using the current or given node's view as the urlconf. with <obj> is retained as a convenient shortcut.
  Initial node_middleware commit. Implements an attribute on the HttpRequest class which handles lazy node evaluation - i.e. request.node is available for all requests, but is only evaluated on first use. Removed all references I could find to node, path, and subpath in Views, which may make for a simpler API. Path and subpath were generally unused and can be extrapolated in other ways; however, should it come to light that they are necessary, they can be added back in.
  Added model validation to Pages; for a page to be valid, its related template must also be valid. Ordinarily, the template would need to be valid in order to exist; however, this should help catch cases where, for example, changes on a filesystem template affect the validity of a database template. Addresses the remaining issues with bug #14.
  Genericized penfield's migrations to allow for variations in the PHILO_PERSON_MODULE setting by adding a central frozen reference to the person module appropriate for use in a South Migration.
  Tweaked QuerySetMapper to return the value's value, in line with the changes to flexible attributes. Adjusted attribute fields to compensate.
  Shunted the responsibility in Entity proxy models for setting an Attribute's value onto the field that manages the model's relationship to that attribute.
  Added migrations to handle transfer of structure and information to and from flexible attributes.
  Added AttributeInlineFormSet to force new Attribute instances to be run through the form's save method for extra processing.
  Added generic relation from attribute values back to Attribute.
  Added migrations from ithinksw/master to melinath/master
  Added search field to tags; added db_index=True to newsletter article full_text to expediate searching.
  Polished AttributeForm to better handle changes to an attribute instance. Introduced apply_data to AttributeValue models to further allow customization. Made an AttributeValue class which must be subclassed to create new attribute values.
  Added AttributeForm to elegantly handle all the fields that should be displayed in the admin related to the instance's value. Tweaked the tabular_collapse template (which was only used for attributes) to display the extra fields. Added the "value_formfield" method to Attribute Value models to allow for the possible future addition of value types.
  Initial flexible attributes commit. Removed Relationship model in favor of a flexible Attribute model with generic foreign keys to an entity and a value type. This should allow for easy addition of attribute types: for example, an attribute with a ManyToMany value.
  Created JSON field, descriptor, and formfield to handle json storage on models uniformly. Addresses feature #26.

14 years agoMerge branch 'node_url_refactor'
Stephen Burrows [Thu, 21 Oct 2010 19:57:01 +0000 (15:57 -0400)]
Merge branch 'node_url_refactor'

14 years agoMerge branch 'node_middleware'
Stephen Burrows [Thu, 21 Oct 2010 19:56:45 +0000 (15:56 -0400)]
Merge branch 'node_middleware'

14 years agoAdded support for 'editable' to ProxyFields. Tweaked AttributeFieldDescriptor base...
Stephen Burrows [Thu, 21 Oct 2010 19:05:07 +0000 (15:05 -0400)]
Added support for 'editable' to ProxyFields. Tweaked AttributeFieldDescriptor base class to not raise an AttributeError on access. This allows the descriptor to be detected by Django admin validation, allowing the proxy fields to be used (for example) in a ModelAdmin's readonly_fields and list_display fields. This may address the remaining issues in feature #16.

14 years agoTweaked philo migrations to force contenttype creation after migration 0005 so the...
Stephen Burrows [Thu, 21 Oct 2010 16:15:14 +0000 (12:15 -0400)]
Tweaked philo migrations to force contenttype creation after migration 0005 so the contenttypes are available in migration 0006. Ordinarily contenttypes are only synced after a complete set of migrations. Also implemented default values on proxy fields; partially addresses feature #16.

14 years agoAdded unittest for node_url templatetag. Fixed issues uncovered with unittests. Added...
Stephen Burrows [Wed, 20 Oct 2010 21:43:53 +0000 (17:43 -0400)]
Added unittest for node_url templatetag. Fixed issues uncovered with unittests. Added test fixture. Seems bugfree - as such, addresses feature #12.

14 years agoInitial node_url_refactor commit. Revises node_url templatetag to accept args/kwargs...
Stephen Burrows [Wed, 20 Oct 2010 18:45:58 +0000 (14:45 -0400)]
Initial node_url_refactor commit. Revises node_url templatetag to accept args/kwargs like urlnode, using the current or given node's view as the urlconf. with <obj> is retained as a convenient shortcut.

14 years agoInitial node_middleware commit. Implements an attribute on the HttpRequest class...
Stephen Burrows [Tue, 19 Oct 2010 21:08:24 +0000 (17:08 -0400)]
Initial node_middleware commit. Implements an attribute on the HttpRequest class which handles lazy node evaluation - i.e. request.node is available for all requests, but is only evaluated on first use. Removed all references I could find to node, path, and subpath in Views, which may make for a simpler API. Path and subpath were generally unused and can be extrapolated in other ways; however, should it come to light that they are necessary, they can be added back in.

14 years agoMerge 'template_error_handling' bugfix.
Stephen Burrows [Tue, 19 Oct 2010 14:56:15 +0000 (10:56 -0400)]
Merge 'template_error_handling' bugfix.

14 years agoAdded model validation to Pages; for a page to be valid, its related template must...
Stephen Burrows [Tue, 19 Oct 2010 14:49:59 +0000 (10:49 -0400)]
Added model validation to Pages; for a page to be valid, its related template must also be valid. Ordinarily, the template would need to be valid in order to exist; however, this should help catch cases where, for example, changes on a filesystem template affect the validity of a database template. Addresses the remaining issues with bug #14.

14 years agoGenericized penfield's migrations to allow for variations in the PHILO_PERSON_MODULE...
Stephen Burrows [Mon, 18 Oct 2010 21:31:55 +0000 (17:31 -0400)]
Genericized penfield's migrations to allow for variations in the PHILO_PERSON_MODULE setting by adding a central frozen reference to the person module appropriate for use in a South Migration.

14 years agoTweaked QuerySetMapper to return the value's value, in line with the changes to flexi...
Stephen Burrows [Fri, 15 Oct 2010 14:43:42 +0000 (10:43 -0400)]
Tweaked QuerySetMapper to return the value's value, in line with the changes to flexible attributes. Adjusted attribute fields to compensate.

14 years agoShunted the responsibility in Entity proxy models for setting an Attribute's value...
Stephen Burrows [Thu, 14 Oct 2010 20:24:59 +0000 (16:24 -0400)]
Shunted the responsibility in Entity proxy models for setting an Attribute's value onto the field that manages the model's relationship to that attribute.

14 years agoMerge branch 'flexible_attributes'
Stephen Burrows [Thu, 14 Oct 2010 16:43:56 +0000 (12:43 -0400)]
Merge branch 'flexible_attributes'

14 years agoAdded migrations to handle transfer of structure and information to and from flexible...
Stephen Burrows [Thu, 14 Oct 2010 16:30:23 +0000 (12:30 -0400)]
Added migrations to handle transfer of structure and information to and from flexible attributes.

14 years agoAdded AttributeInlineFormSet to force new Attribute instances to be run through the...
Stephen Burrows [Thu, 14 Oct 2010 16:29:17 +0000 (12:29 -0400)]
Added AttributeInlineFormSet to force new Attribute instances to be run through the form's save method for extra processing.

14 years agoAdded generic relation from attribute values back to Attribute.
Stephen Burrows [Thu, 14 Oct 2010 15:18:24 +0000 (11:18 -0400)]
Added generic relation from attribute values back to Attribute.

14 years agoMerge branch 'master' into flexible_attributes
Stephen Burrows [Thu, 14 Oct 2010 13:57:35 +0000 (09:57 -0400)]
Merge branch 'master' into flexible_attributes

14 years agoAdded migrations from ithinksw/master to melinath/master
Stephen Burrows [Wed, 13 Oct 2010 21:06:27 +0000 (17:06 -0400)]
Added migrations from ithinksw/master to melinath/master

14 years agoAdded search field to tags; added db_index=True to newsletter article full_text to...
Stephen Burrows [Wed, 13 Oct 2010 18:46:49 +0000 (14:46 -0400)]
Added search field to tags; added db_index=True to newsletter article full_text to expediate searching.

14 years agoPolished AttributeForm to better handle changes to an attribute instance. Introduced...
Stephen Burrows [Tue, 12 Oct 2010 21:44:43 +0000 (17:44 -0400)]
Polished AttributeForm to better handle changes to an attribute instance. Introduced apply_data to AttributeValue models to further allow customization. Made an AttributeValue class which must be subclassed to create new attribute values.

14 years agoAdded AttributeForm to elegantly handle all the fields that should be displayed in...
Stephen Burrows [Tue, 12 Oct 2010 16:30:34 +0000 (12:30 -0400)]
Added AttributeForm to elegantly handle all the fields that should be displayed in the admin related to the instance's value. Tweaked the tabular_collapse template (which was only used for attributes) to display the extra fields. Added the "value_formfield" method to Attribute Value models to allow for the possible future addition of value types.

14 years agoInitial flexible attributes commit. Removed Relationship model in favor of a flexible...
Stephen Burrows [Tue, 12 Oct 2010 13:51:05 +0000 (09:51 -0400)]
Initial flexible attributes commit. Removed Relationship model in favor of a flexible Attribute model with generic foreign keys to an entity and a value type. This should allow for easy addition of attribute types: for example, an attribute with a ManyToMany value.

14 years agoCreated JSON field, descriptor, and formfield to handle json storage on models unifor...
Stephen Burrows [Fri, 8 Oct 2010 18:09:21 +0000 (14:09 -0400)]
Created JSON field, descriptor, and formfield to handle json storage on models uniformly. Addresses feature #26.

14 years agoMerge branch 'master' of git://github.com/melinath/philo
Joseph Spiros [Wed, 6 Oct 2010 01:08:40 +0000 (21:08 -0400)]
Merge branch 'master' of git://github.com/melinath/philo

* 'master' of git://github.com/melinath/philo:
  Minor bugfix: moved ConstantEmbedNode DoesNotExist reraising so that it actually reraises the DoesNotExist exception.
  Removed referential integrity code. Moved embed templatetag into core. Differentiated ConstantEmbedNode (context-independent) and EmbedNode, analogous to django's ConstantIncludeNode/IncludeNode.
  Added embeddable_content_types registry to track what content types are embeddable. Added tracking of whether a model class run through post_delete has EmbedField instances on it. These save time and trouble in the post_delete cascade.
  Added kwarg capability to embed tag. Adjusted reference substitution to account for kwargs.
  Adjusted to match the new master TemplateField changes. Switched the setting of _embedded_instances to the EmbedField clean method so that validationerrors can be raised. Added South introspection rules. Switched NewsletterArticle to use EmbedFields. Set EmbedNode to pre-calculate templates and instances if appropriate and to suppress any errors that might occur. Made invalid content type references raise a TemplateSyntaxError, in line with the container template tag.
  Added post-save and post-delete signals to manage Embed instances. Added the delete method on the Embed model to remove itself from fields where it is embedded.
  Added methods and functions to support syncing embedded models in post-save.
  Initial embed commit. Implements TemplateField and EmbedField - model fields that validate their contents as templates and templates with embedded content, respectively. Implements the {% embed %} template tag, which allows arbitrary instances to be rendered with a given template. Initial sketch of the embed tracker (which should handle cascading deletions) also in place.
  Switched nodelist crawl to return the more generic 'results' of the crawl, rather than 'nodes'. Fixed missing import for TemplateValidationParser.
  Abstracted the Template container fetcher to a nodelist_crawler which takes a callback to determine if a node should be returned. Put all code related to the crawler into philo.utils.
  Moved a few more miscellaneous things into master from embed that did not belong there, mostly deletions of old code regarding template validation.
  Removed 'dynamic' from the Contentlet model. Added TemplateField to Template model and Contentlet model. Fixed some minor typos and added some comments to the code. Increased verbosity of 'disallowed tag' errors.
  Added template field to master branch. Added monkeypatch for telling if a node includes a template and what that template is - eases container fetching. Added template validator which can allow/disallow tags by using a custom parser. Requires testing.
  Tweaked nodeview error reraising to preserve traceback information.

14 years agoMerge branch 'embed'
Stephen Burrows [Tue, 5 Oct 2010 21:49:59 +0000 (17:49 -0400)]
Merge branch 'embed'

14 years agoMinor bugfix: moved ConstantEmbedNode DoesNotExist reraising so that it actually...
Stephen Burrows [Tue, 5 Oct 2010 21:49:12 +0000 (17:49 -0400)]
Minor bugfix: moved ConstantEmbedNode DoesNotExist reraising so that it actually reraises the DoesNotExist exception.

14 years agoRemoved referential integrity code. Moved embed templatetag into core. Differentiated...
Stephen Burrows [Tue, 5 Oct 2010 21:16:21 +0000 (17:16 -0400)]
Removed referential integrity code. Moved embed templatetag into core. Differentiated ConstantEmbedNode (context-independent) and EmbedNode, analogous to django's ConstantIncludeNode/IncludeNode.

14 years agoAdded embeddable_content_types registry to track what content types are embeddable...
Stephen Burrows [Mon, 4 Oct 2010 20:27:43 +0000 (16:27 -0400)]
Added embeddable_content_types registry to track what content types are embeddable. Added tracking of whether a model class run through post_delete has EmbedField instances on it. These save time and trouble in the post_delete cascade.

14 years agoAdded kwarg capability to embed tag. Adjusted reference substitution to account for...
Stephen Burrows [Mon, 4 Oct 2010 15:54:31 +0000 (11:54 -0400)]
Added kwarg capability to embed tag. Adjusted reference substitution to account for kwargs.

14 years agoAdjusted to match the new master TemplateField changes. Switched the setting of _embe...
Stephen Burrows [Mon, 4 Oct 2010 15:09:54 +0000 (11:09 -0400)]
Adjusted to match the new master TemplateField changes. Switched the setting of _embedded_instances to the EmbedField clean method so that validationerrors can be raised. Added South introspection rules. Switched NewsletterArticle to use EmbedFields. Set EmbedNode to pre-calculate templates and instances if appropriate and to suppress any errors that might occur. Made invalid content type references raise a TemplateSyntaxError, in line with the container template tag.

14 years agoAdded post-save and post-delete signals to manage Embed instances. Added the delete...
Stephen Burrows [Tue, 28 Sep 2010 14:28:20 +0000 (10:28 -0400)]
Added post-save and post-delete signals to manage Embed instances. Added the delete method on the Embed model to remove itself from fields where it is embedded.

14 years agoAdded methods and functions to support syncing embedded models in post-save.
Stephen Burrows [Mon, 27 Sep 2010 21:42:47 +0000 (17:42 -0400)]
Added methods and functions to support syncing embedded models in post-save.

14 years agoInitial embed commit. Implements TemplateField and EmbedField - model fields that...
Stephen Burrows [Mon, 27 Sep 2010 17:43:32 +0000 (13:43 -0400)]
Initial embed commit. Implements TemplateField and EmbedField - model fields that validate their contents as templates and templates with embedded content, respectively. Implements the {% embed %} template tag, which allows arbitrary instances to be rendered with a given template. Initial sketch of the embed tracker (which should handle cascading deletions) also in place.

14 years agoSwitched nodelist crawl to return the more generic 'results' of the crawl, rather...
Stephen Burrows [Mon, 4 Oct 2010 14:17:27 +0000 (10:17 -0400)]
Switched nodelist crawl to return the more generic 'results' of the crawl, rather than 'nodes'. Fixed missing import for TemplateValidationParser.

14 years agoAdding recaptcha-django to the README.
Joseph Spiros [Sun, 3 Oct 2010 21:17:42 +0000 (17:17 -0400)]
Adding recaptcha-django to the README.

14 years agoAbstracted the Template container fetcher to a nodelist_crawler which takes a callbac...
Stephen Burrows [Fri, 1 Oct 2010 16:51:15 +0000 (12:51 -0400)]
Abstracted the Template container fetcher to a nodelist_crawler which takes a callback to determine if a node should be returned. Put all code related to the crawler into philo.utils.

14 years agoMoved a few more miscellaneous things into master from embed that did not belong...
Stephen Burrows [Fri, 1 Oct 2010 14:49:55 +0000 (10:49 -0400)]
Moved a few more miscellaneous things into master from embed that did not belong there, mostly deletions of old code regarding template validation.

14 years agoRemoved 'dynamic' from the Contentlet model. Added TemplateField to Template model...
Stephen Burrows [Fri, 1 Oct 2010 14:24:02 +0000 (10:24 -0400)]
Removed 'dynamic' from the Contentlet model. Added TemplateField to Template model and Contentlet model. Fixed some minor typos and added some comments to the code. Increased verbosity of 'disallowed tag' errors.

14 years agoAdded template field to master branch. Added monkeypatch for telling if a node includ...
Stephen Burrows [Thu, 30 Sep 2010 22:15:52 +0000 (18:15 -0400)]
Added template field to master branch. Added monkeypatch for telling if a node includes a template and what that template is - eases container fetching. Added template validator which can allow/disallow tags by using a custom parser. Requires testing.

14 years agoTweaked nodeview error reraising to preserve traceback information.
Stephen Burrows [Thu, 30 Sep 2010 19:52:07 +0000 (15:52 -0400)]
Tweaked nodeview error reraising to preserve traceback information.

14 years agoMerge branch 'master' of git://github.com/melinath/philo
Joseph Spiros [Wed, 29 Sep 2010 18:39:17 +0000 (14:39 -0400)]
Merge branch 'master' of git://github.com/melinath/philo

* 'master' of git://github.com/melinath/philo:
  Implemented better container filtering for page container inlines.
  Modified FeedMultiViewMixin to allow greater customization of feed creation, especially with regards to feed titles. Tweaked BlogView and NewsletterView to be in line with the changes.
  Adjusted feedmultiviewmixin to allow more customization of objects being added to feeds and to link to complete urls instead of absolute in-site urls.
  Corrected blogview tag feed urls.
  Added filter_horizontal on blogentry tags. Made minor corrections to BlogView's get_entries_by_tag method.
  Added waldo filtering to send multipart or plaintext messages based on the template mimetype. Tweaked Template model to actually default to text/html instead of just saying it.
  Fixed login redirects
  Added recaptcha support to waldo registration form.
  Switched newsletterissue numbering to a more generic field. Added newsletterview unicode. Minor change to container templatetags to ensure that the container_content variable is always set.
  Added 500 handling to nodeview. Made nodeview vary on Accept header to allow fancy json/html switchouts - possibly also other fanciness.
  Added philo 404 handling via a relationship named Http404 on nodes. Uses the passthrough feature of relationships to let 404 views inherit.
  Added tags to newsletter articles
  Tweaked AccountMultiView to account for emails containing '+' in the local address.
  Upped philo.tag name/slug lengths to 255.
  Added slug to TagAdmin list_display. Corrected FeedMultiViewMixin to also paginate the root page.
  Added helper function to ease response 'returns' for signal listeners
  Switched over to render_to_response and actually_render_to_response, since render_to_response is the open api used by say multiviews and should always be called when a page is to render. Calling a hidden method would not be good. Also added render_to_string listeners for pages.
  Added view_about_to_render and view_finished_rendering signals. Added hidden _render_to_response method to ensure they're called on all view subclasses. Also some minor streamlining on Newsletters.
  Shifted definition of the context list_var (entries vs. articles) to a class attribute. Since account_view can be put in place of any arbitrary view, let it accept args and kwargs to handle anything unexpected.

14 years agoImplemented better container filtering for page container inlines.
Stephen Burrows [Tue, 28 Sep 2010 20:21:04 +0000 (16:21 -0400)]
Implemented better container filtering for page container inlines.

14 years agoModified FeedMultiViewMixin to allow greater customization of feed creation, especial...
Stephen Burrows [Thu, 23 Sep 2010 16:27:24 +0000 (12:27 -0400)]
Modified FeedMultiViewMixin to allow greater customization of feed creation, especially with regards to feed titles. Tweaked BlogView and NewsletterView to be in line with the changes.

14 years agoAdjusted feedmultiviewmixin to allow more customization of objects being added to...
Stephen Burrows [Thu, 23 Sep 2010 15:10:47 +0000 (11:10 -0400)]
Adjusted feedmultiviewmixin to allow more customization of objects being added to feeds and to link to complete urls instead of absolute in-site urls.

14 years agoCorrected blogview tag feed urls.
Stephen Burrows [Wed, 22 Sep 2010 15:10:11 +0000 (11:10 -0400)]
Corrected blogview tag feed urls.

14 years agoAdded filter_horizontal on blogentry tags. Made minor corrections to BlogView's get_e...
Stephen Burrows [Wed, 22 Sep 2010 14:51:11 +0000 (10:51 -0400)]
Added filter_horizontal on blogentry tags. Made minor corrections to BlogView's get_entries_by_tag method.

14 years agoAdded waldo filtering to send multipart or plaintext messages based on the template...
Stephen Burrows [Wed, 15 Sep 2010 22:27:49 +0000 (18:27 -0400)]
Added waldo filtering to send multipart or plaintext messages based on the template mimetype. Tweaked Template model to actually default to text/html instead of just saying it.

14 years agoFixed login redirects
Stephen Burrows [Wed, 15 Sep 2010 20:59:56 +0000 (16:59 -0400)]
Fixed login redirects

14 years agoAdded recaptcha support to waldo registration form.
Stephen Burrows [Mon, 13 Sep 2010 17:53:25 +0000 (13:53 -0400)]
Added recaptcha support to waldo registration form.

14 years agoSwitched newsletterissue numbering to a more generic field. Added newsletterview...
Stephen Burrows [Mon, 13 Sep 2010 15:23:36 +0000 (11:23 -0400)]
Switched newsletterissue numbering to a more generic field. Added newsletterview unicode. Minor change to container templatetags to ensure that the container_content variable is always set.

14 years agoAdded 500 handling to nodeview. Made nodeview vary on Accept header to allow fancy...
Stephen Burrows [Fri, 10 Sep 2010 17:14:21 +0000 (13:14 -0400)]
Added 500 handling to nodeview. Made nodeview vary on Accept header to allow fancy json/html switchouts - possibly also other fanciness.

14 years agoAdded philo 404 handling via a relationship named Http404 on nodes. Uses the passthro...
Stephen Burrows [Thu, 9 Sep 2010 21:16:12 +0000 (17:16 -0400)]
Added philo 404 handling via a relationship named Http404 on nodes. Uses the passthrough feature of relationships to let 404 views inherit.

14 years agoAdded tags to newsletter articles
Stephen Burrows [Tue, 7 Sep 2010 18:24:22 +0000 (14:24 -0400)]
Added tags to newsletter articles

14 years agoTweaked AccountMultiView to account for emails containing '+' in the local address.
Stephen Burrows [Fri, 3 Sep 2010 20:03:16 +0000 (16:03 -0400)]
Tweaked AccountMultiView to account for emails containing '+' in the local address.

14 years agoUpped philo.tag name/slug lengths to 255.
Stephen Burrows [Thu, 2 Sep 2010 21:33:24 +0000 (17:33 -0400)]
Upped philo.tag name/slug lengths to 255.

14 years agoAdded slug to TagAdmin list_display. Corrected FeedMultiViewMixin to also paginate...
Stephen Burrows [Thu, 2 Sep 2010 16:22:10 +0000 (12:22 -0400)]
Added slug to TagAdmin list_display. Corrected FeedMultiViewMixin to also paginate the root page.

14 years agoAdded helper function to ease response 'returns' for signal listeners
Stephen Burrows [Tue, 31 Aug 2010 15:55:42 +0000 (11:55 -0400)]
Added helper function to ease response 'returns' for signal listeners

14 years agoSwitched over to render_to_response and actually_render_to_response, since render_to_...
Stephen Burrows [Tue, 31 Aug 2010 15:34:18 +0000 (11:34 -0400)]
Switched over to render_to_response and actually_render_to_response, since render_to_response is the open api used by say multiviews and should always be called when a page is to render. Calling a hidden method would not be good. Also added render_to_string listeners for pages.

14 years agoAdded view_about_to_render and view_finished_rendering signals. Added hidden _render_...
Stephen Burrows [Tue, 31 Aug 2010 14:37:11 +0000 (10:37 -0400)]
Added view_about_to_render and view_finished_rendering signals. Added hidden _render_to_response method to ensure they're called on all view subclasses. Also some minor streamlining on Newsletters.

14 years agoShifted definition of the context list_var (entries vs. articles) to a class attribut...
Stephen Burrows [Thu, 26 Aug 2010 14:44:21 +0000 (10:44 -0400)]
Shifted definition of the context list_var (entries vs. articles) to a class attribute. Since account_view can be put in place of any arbitrary view, let it accept args and kwargs to handle anything unexpected.

14 years agoAdded JSON validator to Attributes.
Joseph Spiros [Wed, 8 Sep 2010 17:26:15 +0000 (13:26 -0400)]
Added JSON validator to Attributes.

14 years agoMerge branch 'melinath'
Joseph Spiros [Tue, 24 Aug 2010 13:10:33 +0000 (09:10 -0400)]
Merge branch 'melinath'

* melinath:
  Corrected get_subpath on blogs and newsletters to fit the new paradigm.
  Implemented feeds for NewsletterView. Corrected BlogView/NewsletterView urlpatterns.
  Moved feed-related methods to a generic mixin.
  Added feeds to blogs.
  Implemented object deletion on null values. Added ModelChoiceWidget to ContentReferences.
  Display of current values functional.
  Display of ContainerFormSets functional; display of their values is not; saving of values, however, is.
  Initial new page admin commit. Working on faking the admin out through inlines instead of ModelAdmin methods.
  Implemented email change confirmation.
  Implemented EmailTokenGenerator and added password changing to the LoginMultiView.
  Implemented password resetting. Improved redirection on login.
  Implemented one-time login on account confirm.
  Token-based User registration functional
  WIP: Implementation of pended user creation using tokens. Needs some testing.
  Initial waldo commit. Implements abstract LoginMultiView and AccountMultiView to generically handle login situations for philo.

14 years agoMerge branch 'new_page_admin' of git://github.com/melinath/philo into melinath
Joseph Spiros [Tue, 24 Aug 2010 13:10:18 +0000 (09:10 -0400)]
Merge branch 'new_page_admin' of git://github.com/melinath/philo into melinath

* 'new_page_admin' of git://github.com/melinath/philo:
  Implemented object deletion on null values. Added ModelChoiceWidget to ContentReferences.
  Display of current values functional.
  Display of ContainerFormSets functional; display of their values is not; saving of values, however, is.
  Initial new page admin commit. Working on faking the admin out through inlines instead of ModelAdmin methods.

14 years agoMerge branch 'feedmixin' of git://github.com/melinath/philo into melinath
Joseph Spiros [Tue, 24 Aug 2010 13:10:13 +0000 (09:10 -0400)]
Merge branch 'feedmixin' of git://github.com/melinath/philo into melinath

* 'feedmixin' of git://github.com/melinath/philo:
  Corrected get_subpath on blogs and newsletters to fit the new paradigm.
  Implemented feeds for NewsletterView. Corrected BlogView/NewsletterView urlpatterns.
  Moved feed-related methods to a generic mixin.
  Added feeds to blogs.

14 years agoMerge branch 'waldo' of git://github.com/melinath/philo into melinath
Joseph Spiros [Tue, 24 Aug 2010 13:10:07 +0000 (09:10 -0400)]
Merge branch 'waldo' of git://github.com/melinath/philo into melinath

* 'waldo' of git://github.com/melinath/philo:
  Implemented email change confirmation.
  Implemented EmailTokenGenerator and added password changing to the LoginMultiView.
  Implemented password resetting. Improved redirection on login.
  Implemented one-time login on account confirm.
  Token-based User registration functional
  WIP: Implementation of pended user creation using tokens. Needs some testing.
  Initial waldo commit. Implements abstract LoginMultiView and AccountMultiView to generically handle login situations for philo.

14 years agoCorrected get_subpath on blogs and newsletters to fit the new paradigm.
Stephen Burrows [Mon, 23 Aug 2010 17:48:01 +0000 (13:48 -0400)]
Corrected get_subpath on blogs and newsletters to fit the new paradigm.

14 years agoImplemented feeds for NewsletterView. Corrected BlogView/NewsletterView urlpatterns.
Stephen Burrows [Mon, 23 Aug 2010 16:23:30 +0000 (12:23 -0400)]
Implemented feeds for NewsletterView. Corrected BlogView/NewsletterView urlpatterns.

14 years agoMoved feed-related methods to a generic mixin.
Stephen Burrows [Fri, 20 Aug 2010 15:36:50 +0000 (11:36 -0400)]
Moved feed-related methods to a generic mixin.

14 years agoAdded feeds to blogs.
Stephen Burrows [Thu, 19 Aug 2010 22:24:07 +0000 (18:24 -0400)]
Added feeds to blogs.

14 years agoImplemented object deletion on null values. Added ModelChoiceWidget to ContentReferences.
melinath [Wed, 18 Aug 2010 21:51:08 +0000 (17:51 -0400)]
Implemented object deletion on null values. Added ModelChoiceWidget to ContentReferences.

14 years agoDisplay of current values functional.
melinath [Wed, 18 Aug 2010 20:29:04 +0000 (16:29 -0400)]
Display of current values functional.

14 years agoDisplay of ContainerFormSets functional; display of their values is not; saving of...
melinath [Wed, 18 Aug 2010 20:12:22 +0000 (16:12 -0400)]
Display of ContainerFormSets functional; display of their values is not; saving of values, however, is.

14 years agoInitial new page admin commit. Working on faking the admin out through inlines instea...
melinath [Wed, 18 Aug 2010 19:03:07 +0000 (15:03 -0400)]
Initial new page admin commit. Working on faking the admin out through inlines instead of ModelAdmin methods.

14 years agoImplemented email change confirmation.
melinath [Tue, 17 Aug 2010 20:43:30 +0000 (16:43 -0400)]
Implemented email change confirmation.

14 years agoImplemented EmailTokenGenerator and added password changing to the LoginMultiView.
melinath [Tue, 17 Aug 2010 16:37:37 +0000 (12:37 -0400)]
Implemented EmailTokenGenerator and added password changing to the LoginMultiView.

14 years agoImplemented password resetting. Improved redirection on login.
Stephen Burrows [Wed, 11 Aug 2010 21:07:08 +0000 (17:07 -0400)]
Implemented password resetting. Improved redirection on login.

14 years agoImplemented one-time login on account confirm.
Stephen Burrows [Wed, 11 Aug 2010 17:52:54 +0000 (13:52 -0400)]
Implemented one-time login on account confirm.

14 years agoToken-based User registration functional
Stephen Burrows [Wed, 11 Aug 2010 16:50:19 +0000 (12:50 -0400)]
Token-based User registration functional

14 years agoWIP: Implementation of pended user creation using tokens. Needs some testing.
Stephen Burrows [Tue, 10 Aug 2010 22:29:41 +0000 (18:29 -0400)]
WIP: Implementation of pended user creation using tokens. Needs some testing.

14 years agoInitial waldo commit. Implements abstract LoginMultiView and AccountMultiView to...
Stephen Burrows [Mon, 9 Aug 2010 21:42:19 +0000 (17:42 -0400)]
Initial waldo commit. Implements abstract LoginMultiView and AccountMultiView to generically handle login situations for philo.

14 years agoMerge branch 'master' of git://github.com/melinath/philo
Joseph Spiros [Fri, 20 Aug 2010 21:21:27 +0000 (17:21 -0400)]
Merge branch 'master' of git://github.com/melinath/philo

* 'master' of git://github.com/melinath/philo:
  Re-tweaked page add form to preserve 'continue on normal save' functionality. This is implemented with javascript and will probably break some time in the future, but there doesn't seem to be a better way to do it at the moment. Fixes bug #8.
  Tweaked page add_form template. Fixes bug #8.
  Moved templateform to forms.py in preparation for experimentation with page forms.
  Added collapse classes to attribute and relationship inlines on entities.
  Added template code validation to the admin. This essentially addresses bug #14 by catching errors with validation on templates instead of letting it show up as a server error later. (Note that there should still be better validation on Pages, as deletion of a template say on the filesystem could render a db-driven template invalid.)
  Set TreeModel slug field length to 255 to match Titled

14 years agoRe-tweaked page add form to preserve 'continue on normal save' functionality. This...
melinath [Thu, 19 Aug 2010 16:02:10 +0000 (12:02 -0400)]
Re-tweaked page add form to preserve 'continue on normal save' functionality. This is implemented with javascript and will probably break some time in the future, but there doesn't seem to be a better way to do it at the moment. Fixes bug #8.

14 years agoTweaked page add_form template. Fixes bug #8.
melinath [Wed, 18 Aug 2010 22:00:40 +0000 (18:00 -0400)]
Tweaked page add_form template. Fixes bug #8.

14 years agoMoved templateform to forms.py in preparation for experimentation with page forms.
melinath [Wed, 18 Aug 2010 14:25:10 +0000 (10:25 -0400)]
Moved templateform to forms.py in preparation for experimentation with page forms.

14 years agoAdded collapse classes to attribute and relationship inlines on entities.
melinath [Tue, 17 Aug 2010 17:09:37 +0000 (13:09 -0400)]
Added collapse classes to attribute and relationship inlines on entities.

14 years agoAdded template code validation to the admin. This essentially addresses bug #14 by...
melinath [Tue, 17 Aug 2010 16:16:20 +0000 (12:16 -0400)]
Added template code validation to the admin. This essentially addresses bug #14 by catching errors with validation on templates instead of letting it show up as a server error later. (Note that there should still be better validation on Pages, as deletion of a template say on the filesystem could render a db-driven template invalid.)

14 years agoSet TreeModel slug field length to 255 to match Titled
melinath [Tue, 17 Aug 2010 16:15:31 +0000 (12:15 -0400)]
Set TreeModel slug field length to 255 to match Titled

14 years agoThe blog ForeignKey on the BlogEntry model can now be blank and null.
Joseph Spiros [Thu, 12 Aug 2010 23:31:19 +0000 (19:31 -0400)]
The blog ForeignKey on the BlogEntry model can now be blank and null.

14 years agoExplicit declaration of keys for AttributeFields and RelationshipFields is now unnece...
Joseph Spiros [Thu, 12 Aug 2010 21:04:38 +0000 (17:04 -0400)]
Explicit declaration of keys for AttributeFields and RelationshipFields is now unnecessary, as they will use the attribute name on the model class they were assigned to by default. This implements feature #20.

14 years agoFixed some issues that broke fieldset definitions on ModelAdmins which used EntityFor...
Joseph Spiros [Thu, 12 Aug 2010 20:53:20 +0000 (16:53 -0400)]
Fixed some issues that broke fieldset definitions on ModelAdmins which used EntityForm or its subclasses.

14 years agoMerge branch 'master' of git://github.com/melinath/philo
Joseph Spiros [Wed, 11 Aug 2010 22:46:32 +0000 (18:46 -0400)]
Merge branch 'master' of git://github.com/melinath/philo

* 'master' of git://github.com/melinath/philo:
  Adjusted the paginate function to only attempt a length check if per_page is valid. Addresses bug #19.

14 years agoAdjusted the paginate function to only attempt a length check if per_page is valid...
Stephen Burrows [Wed, 11 Aug 2010 21:24:43 +0000 (17:24 -0400)]
Adjusted the paginate function to only attempt a length check if per_page is valid. Addresses bug #19.

14 years agoMerge branch 'node_absolute_urls' of git://github.com/melinath/philo
Joseph Spiros [Wed, 11 Aug 2010 20:14:07 +0000 (16:14 -0400)]
Merge branch 'node_absolute_urls' of git://github.com/melinath/philo

* 'node_absolute_urls' of git://github.com/melinath/philo:
  Implements get_absolute_url for nodes (Feature #17). Fixes that mysterious 'name' bug. ;-)

14 years agoMerge branch 'master' of git://github.com/melinath/philo
Joseph Spiros [Wed, 11 Aug 2010 20:10:54 +0000 (16:10 -0400)]
Merge branch 'master' of git://github.com/melinath/philo

* 'master' of git://github.com/melinath/philo:
  Paginator returns page.object_list as objects if a page exists.
  Implements render_to_string on Page model for cases where this is used to render i.e. emails (Feature #18)
  Unimplemented PaginationProxy; moved pagination from penfield to core.
  Multiview will now pass node and extra_context to any view that takes kwargs. Fixes bug #10
  Added forgotten import of EmptyPage.
  Introduced the PaginationProxy object to simplify use in templates.
  Revised penfield's pagination helper to work more generically.

14 years agoPaginator returns page.object_list as objects if a page exists.
Stephen Burrows [Wed, 11 Aug 2010 14:43:11 +0000 (10:43 -0400)]
Paginator returns page.object_list as objects if a page exists.

14 years agoImplements render_to_string on Page model for cases where this is used to render...
Stephen Burrows [Tue, 10 Aug 2010 23:09:52 +0000 (19:09 -0400)]
Implements render_to_string on Page model for cases where this is used to render i.e. emails (Feature #18)

14 years agoImplements get_absolute_url for nodes (Feature #17). Fixes that mysterious 'name...
Stephen Burrows [Tue, 10 Aug 2010 19:51:39 +0000 (15:51 -0400)]
Implements get_absolute_url for nodes (Feature #17). Fixes that mysterious 'name' bug. ;-)