Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 01:12:28 +0000] rev 753
Since DbModelForm has been renamed to BaseForm change super() call from BaseForm to djangoforms.ModelForm in soc.views.helper.forms module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 01:11:12 +0000] rev 752
Some docstring fixes and unused import removal in soc.logic.models.site module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 01:10:32 +0000] rev 751
Fix inheritance in soc.models.base module. FieldsProxy inherited from DbModelForm which was deleted in previous commits (replace that with BaseForm).
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 01:08:16 +0000] rev 750
Fix too long lines in soc.logic.helper.notifications module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 01:07:18 +0000] rev 749
Remove unused import in soc.logic.accounts module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 01:06:13 +0000] rev 748
Remove unused imports in models modules.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 00:34:46 +0000] rev 747
In soc.views.models.notification module remove unused imports, add missing white space, change list() method definition to comply with base View list() method declaration. Add missing Meta class docstring.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 00:24:24 +0000] rev 746
Fix import sorting in soc.views.helper.access module and rename 'host' to 'Program Administrator'.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 00:22:50 +0000] rev 745
Remove not used TYPE_NAME, TYPE_NAME_SHORT and TYPE_NAME_PLURAL consts in all Group models.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 15 Dec 2008 00:21:26 +0000] rev 744
Add missing dots, fix imports sorting and too long lines in different modules. Add TODO in soc.views.models.host module.
Patch by: Pawel Solyga
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 14 Dec 2008 00:51:03 +0000] rev 743
Have user/edit.html use the as_table tag as well
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 14 Dec 2008 00:50:49 +0000] rev 742
Removed unused template
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 14 Dec 2008 00:33:59 +0000] rev 741
Converted as_table to be a template tag
This allows us to move all the HTML from python code (which made it
extremely icky and unreadable) to Django templates, which is _a lot_
more readable, and makes it feasable for HTML/CSS experts to change
the way these tables are generated.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 14 Dec 2008 00:33:41 +0000] rev 740
Added some example_text to program
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 14 Dec 2008 00:33:29 +0000] rev 739
Added support for example texts
Initial patch by Benjamin, some minor fixes by Sverre.
Patch by: Benjamin Lyaunzbe, Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 18:21:35 +0000] rev 738
Brown-paper-bag fix in notification.py
Was missing a leading slash in the redirect.
Patch by: Sverre Rabbelier
Lennard de Rijk <ljvderijk@gmail.com> [Sat, 13 Dec 2008 14:55:00 +0000] rev 737
Notification property has_been_read changed into unread
Due to comments on r1309.
Patch By: Lennard de Rijk
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 13:28:01 +0000] rev 736
No override needed in notifications.py
The only downside is that the ?s=0 parameter will still be appended
but is not handled in list(). The right solution would be to update
list() so that it does say "Message Sent" or such, to give the user
an indication that their message was sent succesfully.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 13:27:40 +0000] rev 735
Make it possible to redirect anywhere after editPost
This makes it possible to not include the suffix in the redirect by
making it a named parameter.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 13:09:06 +0000] rev 734
Make the place of the rights declaration consistent
Other code places it at the top, so we should do that in notification
as well.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 13:08:45 +0000] rev 733
Remove custom override of django_patterns_defaults
Instead restrict access to the edit method, also, there is no need to
set the default access to allow.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 13:08:23 +0000] rev 732
Fix whitespace and EOL damage in notifcation.py
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 12:49:57 +0000] rev 731
Make use of readonly_field_as_table_row
Instead of manually typing out the <br /> etc.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 12:49:34 +0000] rev 730
Fix EOL-damage
We use \n for line endings, so remove the \r from public.html
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 12:49:11 +0000] rev 729
Make checkIsMyInvitation use Django to parse the URL
Using django is more reliable and makes the code easier to read as
there is no knowledge of the url layout required.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 13 Dec 2008 12:48:49 +0000] rev 728
Added a readonly_multiline_field_as_table_row tag
This is useful when a field is allowed to include newlines.
Patch by: Sverre Rabbelier
Lennard de Rijk <ljvderijk@gmail.com> [Sat, 13 Dec 2008 11:02:08 +0000] rev 727
Using getForCurrentAccount where possible due to comments on r1309.
Patch by: Lennard de Rijk
Lennard de Rijk <ljvderijk@gmail.com> [Fri, 12 Dec 2008 23:28:18 +0000] rev 726
Added Notifications.
Notifications will primarily be used to serve the user information message like "New Request Pending". The system can be expanded later on to a messaging system.
If you are a developer you can create message by going to notification/create . This has been done so the system can easily be tested. But will of course be visible in an easy-to-access location when the transition to a message system has been made.
Patch by: Lennard de Rijk
Sverre Rabbelier <srabbelier@gmail.com> [Fri, 12 Dec 2008 00:35:51 +0000] rev 725
Filter the "list Hosts" view
This way only those Hosts are shown that belong to a Sponsor the
user is a host for.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Fri, 12 Dec 2008 00:35:28 +0000] rev 724
Allows a user object to be passed to accounts.isDeveloper
This saves a trip to the database if the user object has already
been retrieved.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Fri, 12 Dec 2008 00:35:08 +0000] rev 723
Make getForFields use the db.Query API
While at it, add support for the IN statement in the form of a value
of the list type.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Fri, 12 Dec 2008 00:34:39 +0000] rev 722
Added getForCurrentAccount to user.Logic
It returns the user entity associated with the currently logged in
user.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Fri, 12 Dec 2008 00:34:12 +0000] rev 721
Added a filter method to dicts
The best way to explain this is probably with an example:
>>> split({'foo':'bar', 'bar':['one', 'two'], 'baz': ['three', 'four']})
[{'bar': 'one', 'foo': 'bar', 'baz': 'three'},
{'bar': 'two', 'foo': 'bar', 'baz': 'three'},
{'bar': 'one', 'foo': 'bar', 'baz': 'four'},
{'bar': 'two', 'foo': 'bar', 'baz': 'four'}]
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Thu, 11 Dec 2008 20:54:22 +0000] rev 720
Make it possible to invite another Host as Host
We do this by asking Django to resolve the current url for us, then
reshufle that url and ask Django (again) to resolve that new url.
From that resolved url we know the appropriate view, and as such we
know which rights dictioanry to pass to access.checkAccess.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Thu, 11 Dec 2008 20:53:57 +0000] rev 719
Added a trivial unzip method, counterpart to zip
Patch by: Sverre Rabbelier
Augie Fackler <durin42@gmail.com> [Thu, 11 Dec 2008 04:23:42 +0000] rev 718
Add some ignore properties for when we get working coverage support.
Lennard de Rijk <ljvderijk@gmail.com> [Wed, 10 Dec 2008 07:38:56 +0000] rev 717
Fixed missing header in site settings.
Also known as Issue 146.
Patch by: Lennard de Rijk
Lennard de Rijk <ljvderijk@gmail.com> [Tue, 09 Dec 2008 15:43:56 +0000] rev 716
Changed "Sponsor" to "Program Owner"
Changed "Host" to "Program Administrator"
Patch by: Lennard de Rijk
Lennard de Rijk <ljvderijk@gmail.com> [Mon, 08 Dec 2008 17:31:33 +0000] rev 715
Adds the removal of requests from the datastore when a new role entity is created.
This uses the classname from the role entity as the type of role in the request.
Patch by: Lennard de Rijk
Pawel Solyga <Pawel.Solyga@gmail.com> [Sun, 07 Dec 2008 20:25:50 +0000] rev 714
Add missing dots in docstrings, proper sorting of imports and small docstring typo fixes.
Patch by: Pawel Solyga
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 20:02:40 +0000] rev 713
Thinkofix in access.checkIsInvited
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 20:02:17 +0000] rev 712
Some forgotten changes with the access_type commit
Patch by: Sverre Rabbelier
Pawel Solyga <Pawel.Solyga@gmail.com> [Sun, 07 Dec 2008 19:18:24 +0000] rev 711
Program Name column showed link_id instead of name, replace link_id with name in soc/program/list/row.html template.
Patch by: Pawel Solyga
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 19:02:41 +0000] rev 710
Add explicit access_types from the url
This does two things, it reduces the amount of repeated data (e.g.,
the checkAccess used to repeat the access_type that was already
specified in the url). At the same time, it allows for example the
'create' page to push its access_type to 'edit'.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 19:02:02 +0000] rev 709
Add checkIsHost in access
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 19:01:35 +0000] rev 708
Some cleanups in role.py and site.py and create()
Patch by: Sverre Rabbelier
Lennard de Rijk <ljvderijk@gmail.com> [Sun, 07 Dec 2008 17:26:59 +0000] rev 707
Changed template for home/public.html to show last modified in the top-right corner.
Patch by: Lennard de Rijk
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 17:02:32 +0000] rev 706
Add site scoped documents to the Site menu
This allows for featured documents that belong to the Site scope to
show up in the 'Site' menu.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 17:02:10 +0000] rev 705
Move document sidebar entries extraction to document.View
This way other modules can benefit from the same logic. Also make use
of the sidebar.getSidebarMenu method so that getMenusForScope is no
longer specific to full menu's.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 17:01:44 +0000] rev 704
Factor out sidebar entry construction
This makes it possible to reuse this logic in other modules as well,
preventing code duplication. While at it, move additional_sidebar
merging before the other entries (additional entries should go first,
since the other entries are mostly dev-only etc).
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:29:37 +0000] rev 703
Rename getSidebarLinks to getSidebarMenus
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:29:10 +0000] rev 702
Remove bogus scope from Site
This makes Site an unscoped entity (similar to how User and Sponsor
do not have a scope).
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:28:36 +0000] rev 701
If an entity is unscoped, do not try to retrieve a scope
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:02:29 +0000] rev 700
Dynamically add sidebar items for programs
This adds sidebar items for programs as appropriate. From the docstring:
A menu item is generated for each program that is currently
running. The public page for each program is added as menu item,
as well as all public documents for that program.
Additionally, we allow access to a program's public page to everyone,
even if the user is not logged in.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:02:03 +0000] rev 699
Add and use a placeholder for checkIsDocumentPublic
We should somehow decide whether a document is publically viewable.
This should of course be dependant on what the document is, e.g. the
FAQ of a program should be allow(), whereas a student's application
should be checkIsMentor().
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 15:01:31 +0000] rev 698
Added a public redirect
Also some minor cleanups in the redirects code.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 13:49:22 +0000] rev 697
Prepare for callbacks that return more than one menu
This paves the way for callbacks that dynamically construct their
menu based on in-db content, such as Programs and Documents.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sun, 07 Dec 2008 13:38:53 +0000] rev 696
Make use of the 'sidebar' param for user_self
Instead of overriding getSidebarLinks we use the sidebar param since
user_self is now in it's own View.
Patch by: Sverre Rabbelier
Lennard de Rijk <ljvderijk@gmail.com> [Sun, 07 Dec 2008 13:06:26 +0000] rev 695
Fixed email adress in urls.py.
Patch by: Lennard de Rijk
Lennard de Rijk <ljvderijk@gmail.com> [Sun, 07 Dec 2008 12:41:28 +0000] rev 694
Fixes 'module' object has no attribute 'handler500' and 404 on instances where debug is False.
Patch by: Lennard de Rijk
Lennard de Rijk <ljvderijk@gmail.com> [Sun, 07 Dec 2008 10:23:10 +0000] rev 693
Fixed the header on the List Programs page.
Patch by: Lennard de Rijk
Pawel Solyga <Pawel.Solyga@gmail.com> [Sat, 06 Dec 2008 22:34:25 +0000] rev 692
Reset the RELEASE_TAG to None (unreleased) now that the 0.1a20081206 release candidate branch has been created.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Sat, 06 Dec 2008 22:18:21 +0000] rev 691
Set RELEASE_TAG to 0.1a20081206rc for release candidate 06/12/2008.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Sat, 06 Dec 2008 21:32:36 +0000] rev 690
Fix imports sorting in soc.views.models.organization.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Sat, 06 Dec 2008 21:27:47 +0000] rev 689
Add missing dots in docstrings in modules.
Patch by: Pawel Solyga
Lennard de Rijk <ljvderijk@gmail.com> [Sat, 06 Dec 2008 21:05:17 +0000] rev 688
Changed generic_name to group_label in models/program.py.
Also I've updated the comments and help text to explain the meaning of this field.
Patch by: Lennard de Rijk
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 19:25:01 +0000] rev 687
Updated to the latest version of upload.py
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 16:52:21 +0000] rev 686
Load ../../google_appengine_1.1.7/ into
trunk/thirdparty/google_appengine.
Lennard de Rijk <ljvderijk@gmail.com> [Sat, 06 Dec 2008 14:50:45 +0000] rev 685
Comment fixes for state in group and role model.
Patch by: Lennard de Rijk
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 14:46:19 +0000] rev 684
Fix for randomely ocurring bug
The bug and it's fix are described by the first comment from Guido
in http://code.google.com/p/googleappengine/issues/detail?id=772.
Patch by: Guido van Rossum
Lennard de Rijk <ljvderijk@gmail.com> [Sat, 06 Dec 2008 14:44:02 +0000] rev 683
Changed state property for models/group.py to be optional as the description states.
Patch by: Lennard de Rijk
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 14:25:24 +0000] rev 682
Added organizations
Really basic for now, next stop is to have a proper document selector
for the Presences.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 14:24:50 +0000] rev 681
Cleanups in group and program
The missing super call in group prevented the scope from being set
as it should be.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 14:24:26 +0000] rev 680
Added a new create regexp in urls for just scope_path
Now that scope_path is properly defined we can add a url matching
just the scope path. This allows some other custom create regexps to
be removed/rewritten.
Note: It needs to be -after- the full key_name regexp, since for
arbitrarily nested scopes it would always match as just scope_path,
even if there are other fields needed after the scope.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 14:23:53 +0000] rev 679
Introduce dynamic scope_path regexps
Instead of relying on scope_path's being "one slash deep", we should
instead allow for either:
1. scope_paths that have a pre-defined depth
2. scope_paths that can be arbitrarily deep
We achieve 1 by setting an entities scope_logic to another logic
module. We then recursively call getScopeDepth until we get to the
topmost entity (that is, an unscoped entity).
A little different is the solution to 2, since some entities can have
an arbitrarily deep scope (such as Documents), we need to have some
way of signaling this to getScopePattern. A clean solution is to
return None, rather than a number. If None is returned, the
SCOPE_PATH_ARG_PATTERN is returned as regexp instead, which will
match an arbitrarily deeply nested scope.
The solution for 2 requires that we return None somewhere in the
scope_logic chain, the most straight forward method to do so is to
override getScopeDepth anywhere such a scope is needed and make it
return None. A more elegant solution however, is to set the
scope_logic to that module in all entities that require it.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 14:23:25 +0000] rev 678
Added a linkable logic module
The linkable logic module is used to signal the fact that the scope
of an entity can be any linkable.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 12:13:19 +0000] rev 677
Fix scope lookup for unscoped entities
As scope_logic is now always set (since r1250), we need to check if
it is None, rather than check if it exists.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 12:12:58 +0000] rev 676
Swap the order of request key fields
This will make it easier to remove scope_path as explicit key field
at some point by having it as inplicit key field for all entities.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 11:53:26 +0000] rev 675
Use key().name() instead of link_id
This is now possible because key_name is constructed purely from the
key fields of an entity. It is not sufficient to use just link_id,
that works only for single-scoped entities (e.g., those that either
do not have a scope, or that have a scope which itself does not have
a scope). It would break if there was an entity that has a scoped
scope (it would only include the scope's link_id in the url, which
made it impossible to look up the scope as we missed the link_id of
the scope's scope).
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 11:53:05 +0000] rev 674
More DI on scope_logic
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 11:31:08 +0000] rev 673
Partial revert
Last commit contained some changes that did not belong there, revert
them for now.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 11:26:15 +0000] rev 672
Some more cleanups in base.Logic
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 11:21:41 +0000] rev 671
Apply DI on the scope logic
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 11:21:01 +0000] rev 670
Removed unused file path_link_name
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Sat, 06 Dec 2008 11:20:44 +0000] rev 669
Remove unneeded method getSuffixValues
Patch by: Sverre Rabbelier
Pawel Solyga <Pawel.Solyga@gmail.com> [Fri, 05 Dec 2008 22:54:43 +0000] rev 668
Some style and typo fixes in different modules.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Fri, 05 Dec 2008 22:27:04 +0000] rev 667
Some more import sorting fixes and docstring typos in program modules and soc.views.helper.redirects module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Fri, 05 Dec 2008 22:25:57 +0000] rev 666
Fix import sorting and docstring typos in soc.views.models.program module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Fri, 05 Dec 2008 22:25:08 +0000] rev 665
Fix import sorting in soc.views.sitemap.build module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Fri, 05 Dec 2008 12:24:02 +0000] rev 664
Some style fixes in soc.logic.helper.notifications module. Little changes in welcome.html template.
Patch by: Pawel Solyga
Sverre Rabbelier <srabbelier@gmail.com> [Thu, 04 Dec 2008 10:09:38 +0000] rev 663
Make base.View.create lookup the scope if appropriate
Also re-introduce the custom description of the list selection for
the redirection.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 23:49:10 +0000] rev 662
Make use of the new generic key_name by lookup up scope_path
This way base classes do not have to look up the 'scope' property,
instead they can rely on the base class to do it for them provided
they define the 'scope_logic' param.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 23:48:33 +0000] rev 661
Change the key name to not include entity type
This allows for direct lookup by scope_path, rather than having to
do more complex things.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 23:48:10 +0000] rev 660
Introduced django_extra_patterns
This way no classes ever need to override the getDjangoURLPatterns,
which results in less code, which is also more clear (that is, it is
immediately obvious that a View adds an extra mapping if it sets
the new django_extra_patterns value, or that it overrides the mapping
when it sets django_patterns_defaults.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 21:28:16 +0000] rev 659
Make scope_path required for program
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 21:27:52 +0000] rev 658
Factor out the Group part of Sponsor
This makes it possible to reuse the Group logic.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 21:27:27 +0000] rev 657
Rename role.RoleView to role.View
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 21:27:01 +0000] rev 656
Cleanups in the views module
Mainly rename from original_params to new_params (so that the keyword
argument in the __init__ method is the same for all). Also use
super(View, self) where appropriate.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Wed, 03 Dec 2008 21:26:16 +0000] rev 655
Cleanups to the logic module
Mainly converting to super(Logic, self) and adding some missing
empty lines while at it.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Tue, 02 Dec 2008 22:05:13 +0000] rev 654
Fixed the 'New Host' link
Also removed the 'Invite Host' button from the Sponsor view now
that the link is working.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Tue, 02 Dec 2008 22:04:38 +0000] rev 653
Make the 'select entity' View generic
This allows the selection of any entity from an arbitrary View
by specifying the 'target view' and the redirect function.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Tue, 02 Dec 2008 22:04:15 +0000] rev 652
Cleanups in preparation of general selector view
Renamed LIST... to DEF_LIST since it is a global definition.
Renamed getCreateProgramRedirect to getCreateRedirect since it will
work on all entities as it uses params.
Added a getParams method to base.View
Updated selectSponsor as appropriate.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Tue, 02 Dec 2008 22:03:46 +0000] rev 651
Remove the logic parameter from getListContent
Now that params always has a 'logic' attribute, we can use that
instead of requiring that it is passed as argument.
Patch by: Sverre Rabbelier
Lennard de Rijk <ljvderijk@gmail.com> [Tue, 02 Dec 2008 20:14:14 +0000] rev 650
Changed clean_link_id to convert the input to lower characters for user comfort.
It has been changed in a couple of files, most importantly in logic/cleaning.py wich will be used by future forms to do their cleaning.
Patch by: Lennard de Rijk
Sverre Rabbelier <srabbelier@gmail.com> [Tue, 02 Dec 2008 20:10:23 +0000] rev 649
Finish Program
Added some fields, and made TinyMCE the editor for the description
field. Also updated the public page to show these new fields.
We really need generic public views...
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Tue, 02 Dec 2008 18:48:42 +0000] rev 648
Brown paperbag fix in recent cycle breaking
Self is no longer used, 'error' should be used instead.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Tue, 02 Dec 2008 17:59:44 +0000] rev 647
Swap order of merged params to fix sponsor select view
The sponsor select view (in 'create new program') was showing the
wrong information (and also using the wrong list template) because
the order in which the params were merged was wrong way around.
This fixes that and at the same time fixes the 'instruction_text'
attribute, which should be named 'list_description' instead. At the
same time we lookup and set Sponsor as the scope of the newly
created program.
Patch by: Sverre Rabbelier
Pawel Solyga <Pawel.Solyga@gmail.com> [Tue, 02 Dec 2008 17:14:18 +0000] rev 646
Remove cyclic imports by moving response method of out_of_band.Error class to soc.views.helper.responses module as errorResponse function. Apply changes to affected files.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Tue, 02 Dec 2008 11:20:08 +0000] rev 645
Remov unused import from Quiz model and add missing blank line.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Tue, 02 Dec 2008 10:44:56 +0000] rev 644
Remove Great Britain from country list. Great Britain was included as a country, although it has a country code (.gb) it's not a state. United Kingdom is correct and remains in the list.
Patch by: Matthew Wilkes
Review by: Pawel Solyga
Sverre Rabbelier <srabbelier@gmail.com> [Mon, 01 Dec 2008 21:38:25 +0000] rev 643
Added programs
Currently the programs are somewhat of empty, but due to the
ease with which we can add new fields later, it is acceptable
to commit it in it's current form.
Patch by: Sverre Rabbelier
Sverre Rabbelier <srabbelier@gmail.com> [Mon, 01 Dec 2008 21:37:27 +0000] rev 642
Allow for extra dynamic fields for the create form
Also some minor cleanups, such as making base.Logic inherit from
object, as per the style guide.
Patch by: Sverre Rabbelier
Lennard de Rijk <ljvderijk@gmail.com> [Mon, 01 Dec 2008 21:30:01 +0000] rev 641
Fixed a styling error.
Patch by: Lennard de Rijk
Lennard de Rijk <ljvderijk@gmail.com> [Mon, 01 Dec 2008 21:03:20 +0000] rev 640
Added User welcome message.
Added templates/soc/mail/welcome.html as a template for the message.
Also fixed a cyclic import that was about to happen in notifications.py.
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 01 Dec 2008 12:37:16 +0000] rev 639
Some docstring fixes in few modules (soc.views.helper soc.views.models.base).
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 01 Dec 2008 12:35:56 +0000] rev 638
Add missing dot and correctly sort imports in soc.logic.helper.notifications module.
Patch by: Pawel Solyga
Pawel Solyga <Pawel.Solyga@gmail.com> [Mon, 01 Dec 2008 12:34:55 +0000] rev 637
Some docstring and missing blank lines fixes in soc.views.sitemap modules.
Patch by: Pawel Solyga
Lennard de Rijk <ljvderijk@gmail.com> [Sun, 30 Nov 2008 22:30:01 +0000] rev 636
Sponsor name now shows in List Hosts.
Patch by: Lennard de Rijk
Lennard de Rijk <ljvderijk@gmail.com> [Sun, 30 Nov 2008 22:15:39 +0000] rev 635
Moved sendInviteMessage to a new module in logic/helper/notifications.py.
Renamed sendInviteMessage to sendInviteNotification.
Removed the now obsolete imports in logic/models/request.py.
This has been done to keep the models/logic modules clean.
Lennard de Rijk <ljvderijk@gmail.com> [Sun, 30 Nov 2008 21:49:14 +0000] rev 634
Changed email address in logic/models/base.py.
Patch by: Lennard de Rijk