Christopher Allan Webber
9cf8b469e7
Move the call to install_migration_version_if_missing() to migrations_to_run()
...
This means there's a serious side effect of calling this, but there's
no way to get useful data here unless if that's set anyway.
2011-07-10 18:43:08 -05:00
Christopher Allan Webber
1b38cfa3b7
install_migration_version_if_missing() now a separate function
...
Also added it to MigrationManager.migrate_new(), because we'll always
need a migration number when migrating.
2011-07-10 18:27:38 -05:00
Christopher Allan Webber
8569533f21
Make sure all these strings in db/util.py are unicode
2011-07-10 16:23:36 -05:00
Christopher Allan Webber
77ffe9be58
Added the actual fake/testing migrations. Haven't run them yet...
2011-07-10 16:19:49 -05:00
Christopher Allan Webber
d0ee0003a2
Simpler run_migrations method.
...
Allows for calbacks, should be useful for printing output and catching
things in tests.
Gets rid of the generator stuff which now that I think of it is a
messy idea.
2011-07-10 15:41:18 -05:00
Christopher Allan Webber
42fe078029
test_migrations.py w/ migrate'able fixtures and some migration scaffolding
...
Not usable yet, but fleshing out well!
2011-07-10 15:28:46 -05:00
Christopher Allan Webber
32ae9e1b4e
Making sure migration_number > 0 :)
2011-07-09 18:17:54 -05:00
Christopher Allan Webber
ec86d16a53
run_new_migrations() makes more sense
2011-07-09 17:21:47 -05:00
Christopher Allan Webber
3054e2b3cb
Sorry, that OptionalField belonged there.
...
I am a bad person and am not allowed to commit anything else today.
2011-07-09 17:16:18 -05:00
Christopher Allan Webber
f4cd7a4ade
<Elrond> Oh well... Did I really have this wtforms cruft in my setup_workbench
...
commit. :-( I don't know even, how it got in there. :-|
2011-07-09 17:13:21 -05:00
Christopher Allan Webber
1fd97db348
Added a note about workbench only currently being used by celery
2011-07-09 17:11:23 -05:00
Christopher Allan Webber
df01342e5e
Merge remote branch 'remotes/elrond/dev/init'
2011-07-09 16:57:20 -05:00
Christopher Allan Webber
7ecb1b0726
Adjusting documentation in indexes.py also re: more info in deprecation
2011-07-09 16:52:57 -05:00
Christopher Allan Webber
50bb8fe5e4
Changing things back so that we keep information about deprecated
...
indexes around.
2011-07-09 16:51:19 -05:00
Christopher Allan Webber
363fc97259
Some instructions in the RegisterMigration docstring on how to use.
2011-07-09 15:10:47 -05:00
Christopher Allan Webber
dca6406a90
latest_migration now returns migration numbers only, and 0 if no migrations.
2011-07-09 15:07:40 -05:00
Christopher Allan Webber
993f0a9321
Migrating quietly, not iteratively, that comment should say!
2011-07-09 14:51:48 -05:00
Christopher Allan Webber
51dcfb5682
New migration utility code.... I haven't tested this! ;)
...
I think it's looking right though.
- Provides MigrationManager which should have plenty of utilities for
doing migrations hopefully correctly :)
- Provides RegisterMigration which should be able to decorate
migrations and register them in doing so
2011-07-09 14:50:41 -05:00
Christopher Allan Webber
9980c5f4f4
Merge remote branch 'remotes/gullydwarf-cfdv/b404_v3_edit_profile_submit_fail'
2011-07-09 09:30:43 -05:00
Christopher Allan Webber
19e7ec24d0
Merge remote branch 'remotes/jwandborg/f431-prevent_comment_link_expiry'
2011-07-09 09:23:34 -05:00
Christopher Allan Webber
83d3922b6e
Merge remote branch 'remotes/gullydwarf-cfdv/437_slug_shouldnt_be_empty'
2011-07-09 09:20:22 -05:00
Christopher Allan Webber
13ca6fb195
Merge remote branch 'remotes/schendje/master'
2011-07-09 09:19:04 -05:00
Christopher Allan Webber
7b31a11c80
Removing trailing whitespace from this file
2011-07-09 09:02:57 -05:00
Christopher Allan Webber
166dc91aca
Add a warning to the user that registrations are disabled.
2011-07-09 09:02:17 -05:00
Christopher Allan Webber
d41cc42a66
Merge remote branch 'remotes/amusablelemur/feature374'
2011-07-09 08:58:22 -05:00
Rasmus Larsson
5647d641a2
Updated spacings in code for better readability
2011-07-09 15:52:30 +02:00
Rasmus Larsson
13bb1d676e
Updated the loginpage to not show a link to register if registrations are disabled
2011-07-09 15:19:55 +02:00
Rasmus Larsson
13677ef97a
Added configuration variable to toggle registrations, if disabled the registration page redirects to index and no link to register is shown
2011-07-09 15:12:00 +02:00
Rasmus Larsson
eedc5428fd
Removed route, view and template file for "Submit Success" page
2011-07-09 02:47:06 +02:00
Jef van Schendel
77e63c8f2e
Tiny height fix to footer
2011-07-08 16:05:20 +02:00
Jef van Schendel
aa84bdd09e
Tiny padding fix for forms/h1
2011-07-08 16:03:17 +02:00
Jef van Schendel
8d74ec4dde
Fix logo styling, positioning
2011-07-08 16:01:07 +02:00
Jef van Schendel
681e137194
Moved Submit button to header, styled button
2011-07-08 15:53:45 +02:00
Jef van Schendel
cdc8cb285d
Added sidebar to profile page; moved some content
2011-07-08 15:22:15 +02:00
Jef van Schendel
7fb39157e0
Remove p style; not need yet
2011-07-08 15:14:27 +02:00
Caleb Forbes Davis V
04a9515064
F360(tagging) - adds tag fields for submission, edit and display
2011-07-08 01:59:44 -05:00
Joar Wandborg
f646f5d36d
Updated MediaCommentForm.field_comment
=> MediaCommentForm.comment_content
...
* Also changed file encoding of `user_pages/forms.py` from dos to unix.
2011-07-07 22:45:51 +02:00
Elrond
7664b4db81
Factor setup_workbench into init submodule.
2011-07-07 22:08:20 +02:00
Jef van Schendel
0a45fa5903
Change pagination styling; add 2 images
2011-07-07 20:04:30 +02:00
Caleb Forbes Davis V
0e1c036c7a
Bug #437 - adds required validator to slug field for media edit'
...
otherwise we get a 404 because we navigate to blank slug
2011-07-07 11:11:03 -05:00
Joar Wandborg
af2fcba5c4
Issue #431 - Prevent comment link expiry - Added functionality for comment linking
...
* `media.html`
* Changed comment textarea handle from `comment` => `field_comment`
* Active comment is hilighted with the CSS class name `comment_active`
and also with the hyperlink anchor #comment
* Changed media.html so that pagination always uses
Route('mediagoblin.user_pages.media_home') as base_url
* `user_pages/forms.py`
* Renamed MediaComment form field `comment` => `field_comment`
* `user_pages/routing.py`
* Added route for `/u/joar/m/123..456/c/234..567/`, points to `media_home`
* `user_pages/views.py`
* `media_home` now checks if the request contains a comment id parameter
then acts accordingly with pagination whether to call it with a
`jump_to_id` or not.
* `media_post_comment` - Updated MediaCommentForm field name
`comment` => `field_comment`
* `util.py`
* `redirect` now supports querystring arguments. - NOT USED (should we
keep it? I think so, it might be useful, sometime [don't call me a
code hoarder]).
* `Pagination.__init__` now accepts one further argument, the `jump_to_id`.
It assist the comment linking functionality in finding and returning the
proper page for a comment.
This feature will work for all kinds of objects. It might not be
optimal, but it is well functional :)
2011-07-07 18:04:19 +02:00
Jef van Schendel
d6ae709c14
Additional style changes to navigation; add three navigation images
2011-07-07 17:54:33 +02:00
Caleb Forbes Davis V
4924d6a50c
bug #404 - corrects querystring variable name in redirect
2011-07-07 10:45:23 -05:00
Jef van Schendel
fd9807ffc3
Experimental black-and-white style change
2011-07-07 17:21:02 +02:00
Christopher Allan Webber
e6fd112d42
This should actually fix the next and previous buttons now. Sorry I borked the merge!
2011-07-07 08:22:12 -05:00
Christopher Allan Webber
fe80cb06c4
Also encourages editing your profile and submitting images
2011-07-06 22:52:08 -05:00
Christopher Allan Webber
2f4e62c210
Merge remote branch 'remotes/gullydwarf-cfdv/f424_email_verified_messaging'
2011-07-06 22:49:53 -05:00
Christopher Allan Webber
b27ec16786
Merge remote branch 'remotes/gullydwarf-cfdv/f423_match_image_ordering_between_scroll_and_gallery'
...
Conflicts:
mediagoblin/db/models.py
2011-07-06 22:47:33 -05:00
Christopher Allan Webber
1f69672478
Merge remote branch 'remotes/gullydwarf-cfdv/b404_v2_redirect_after_profile_edit'
...
Conflicts:
mediagoblin/edit/views.py
2011-07-06 22:38:19 -05:00
Christopher Allan Webber
0f7dc0b4a9
Merge remote branch 'remotes/gullydwarf-cfdv/b429_fix_edit_profile_form_validation'
2011-07-06 22:35:19 -05:00