Elrond
a0033abb9b
Merge remote branch 'remotes/cwebber/sqlalchemy'
...
* remotes/cwebber/sqlalchemy:
Beginnings of sqlalchemy models
2011-12-15 21:10:01 +01:00
Elrond
ddc1cae9ea
Dot-Notation for MediaEntry.media_data
2011-12-05 21:08:58 +01:00
Elrond
5da0bf901b
Dot-Notation for MediaEntry.slug
2011-12-05 21:08:58 +01:00
Elrond
ec82fbd85c
Dot-Notation for MediaEntry.title
2011-12-05 21:08:58 +01:00
Elrond
1ceb4fc868
Dot-Notation for MediaEntry.uploader
2011-12-05 21:08:58 +01:00
Elrond
9047b254f3
Dot-Notation for Users.pw_hash
2011-12-05 21:08:57 +01:00
Elrond
5a4e3ff1e2
Dot-Notation for Users.username
2011-12-05 21:08:57 +01:00
Christopher Allan Webber
99d2ac1d83
Merge remote-tracking branch 'remotes/jwandborg/master'
2011-11-24 15:24:58 -06:00
Elrond
3018832153
Rename MediaEntry.uploader() to .get_uploader()
...
The .uploader() method conflicts with the uploader database
field. As we're moving to .FIELD for db field access, this
is a relevant conflict.
So renaming .uploader() to .get_uploader()
2011-11-22 22:29:37 +01:00
Joar Wandborg
b9e1fa280e
Merge branch 'video_gstreamer-only'
...
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/submit/views.py
2011-11-21 21:51:30 +01:00
Pablo J. Urbano Santos
e62fc61194
Added parameter ascending to MediaEntry::get_comments, if true, comments
...
will be ordered ascending, otherwise descending
2011-11-19 19:11:42 +01:00
Christopher Allan Webber
ccca0fbfc3
Beginnings of sqlalchemy models
2011-11-17 08:28:23 -06:00
Elrond
eabe6b678a
Dot-Notation for "_id"
...
Note: Migrations can't use "Dot Notation"!
Migrations run on pymongo, not mongokit.
So they can't use the "Dot Notation".
This isn't really a big issue, as migrations are anyway
quite mongo specific.
2011-11-15 11:32:13 +01:00
Elrond
7cbddc96a8
Enable mongokit's "Dot notation"
...
mongokit documents can allow to use x.FIELD instead of
x["FIELD"].
First it looks a lot more pythonic.
Second it might allow us an easier migration path towards
an sqlalchemy database backend.
Docs: http://namlook.github.com/mongokit/tutorial.html#dot-notation
2011-11-15 11:32:13 +01:00
Christopher Allan Webber
ee91c2b88d
Merge remote-tracking branch 'remotes/nyergler/pep8-ification'
...
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/user_pages/views.py
mediagoblin/util.py
2011-11-13 20:23:26 -06:00
Elrond
03d47730cd
Factor out a add_table_field function
...
Migrations often just add a new field to some
table/collection. So just have a nice helper function for
this!
2011-10-21 22:17:16 +02:00
Nathan Yergler
285ffeddf3
has_key is deprecated, converting uses to use "in" operator.
2011-10-01 15:10:41 -07:00
Nathan Yergler
243c3843bd
Whitespace and formatting cleanup.
...
* Removed trailing whitespace
* Line length < 80 where possible
* Honor conventions on number of blank lines
* Honor conventions about spaces around :, =
2011-10-01 15:10:02 -07:00
Aaron Williamson
152a3bfaa3
Finished splitting util.py into separate files.
2011-10-01 18:05:44 -04:00
Aaron Williamson
ae3bc7fabf
Moved common, translation, template, and url code out of util.py and into tools/[file].py
2011-10-01 09:31:42 -04:00
Joar Wandborg
93bdab9daa
Multimedia support - Commiting from a not yet finished state - Details below
...
* DONE Initially testing with arista
** DONE Video display templates
*** TODO Multi-browser support
** TODO Video thumbnails
** TODO Link to original video
** TODO Video cropping
Also contains a lot of "debug" print's
2011-09-23 02:35:57 +02:00
Christopher Allan Webber
f373599bd7
Merge branch 'gullydwarf-cfdv-f357_lost_password_functionality'
...
Conflicts:
mediagoblin/auth/routing.py
2011-09-08 08:12:43 -05:00
Christopher Allan Webber
2db31581ed
user_add_forgot_password_token_and_expires migration should set new fields to None/null
2011-09-07 20:18:17 -05:00
Will Kahn-Greene
12a100e4d8
508. Updates copyright/license information
2011-09-01 20:50:19 -04:00
Caleb Forbes Davis V
6503073508
oops, uses Alejandro's fp_verification_key. my bad.
2011-08-28 21:13:07 -05:00
Alejandro Villanueva
25ba955e20
Adding fotgot password functionality
2011-08-28 20:08:14 -05:00
Christopher Allan Webber
6ee9c71902
Method to get the failure exception object for a MediaEntry, if appropriate.
2011-08-14 07:55:08 -05:00
Christopher Allan Webber
6c50c21068
Add fail_error and fail_metadata fields to MediaEntry and relevant migration
2011-08-13 07:48:34 -05:00
Christopher Allan Webber
fabdccd011
Missing multi=True closing this migration, oops :)
2011-08-12 13:14:35 -05:00
Christopher Allan Webber
ba4858c5b4
Merge branch 'master' into processing
...
Conflicts:
mediagoblin/db/migrations.py
2011-08-11 22:54:11 -05:00
Christopher Allan Webber
852d5bb238
Merge branch 'master' into processing
2011-08-10 19:53:37 -05:00
Caleb Forbes Davis V
84abd2bbc4
Bug #372 - MediaEntry.thumbnail_file not used
...
- deleted the thumbnail_file from the media_entries collection
- added a migration to remove the field from previous db versions
2011-08-10 12:48:23 -05:00
Christopher Allan Webber
3cdf366acf
Merge branch 'remotes/gullydwarf-cfdv/f360_tagging' (early part) into mergetags
...
Conflicts:
mediagoblin/config_spec.ini
mediagoblin/edit/views.py
mediagoblin/util.py
2011-07-30 13:09:01 -05:00
Caleb Forbes Davis V
37be7b6da6
updates indices to index on the slug component of the tag list
...
- uses dot notation to reach into the JSON-style MediaEntry tags
field object to index on the slug property of each tag
2011-07-27 16:04:41 -05:00
Caleb Forbes Davis V
0712a06dc6
changes tags to a list of dicts in the db, adding tag slugs
...
- adds a function to convert the tag list of dicts to a text string
properly delimited for loading into forms
- tag string conversion function updated to generate list of dicts
- updates all mentions of the conversion of the string to the tags db
object
- adds a tags template utility and updates the media template accordingly
2011-07-27 14:51:57 -05:00
Christopher Allan Webber
6b9ee0ca13
Store the task id of a processing action in the database.
2011-07-24 23:12:46 -05:00
Christopher Allan Webber
e83dc091cc
docstring for MediaComment's structure
2011-07-17 17:06:06 -05:00
Christopher Allan Webber
080a81ec48
Described the MediaEntry structure in the docstring.
2011-07-17 16:51:36 -05:00
Christopher Allan Webber
16bcd1e714
Docstring for the User model's various schema fields
2011-07-17 15:49:49 -05:00
Christopher Allan Webber
fa92d52fa5
Migration for mediafiles main->original
2011-07-17 08:50:09 -05:00
Christopher Allan Webber
5f72a4c331
Merge remote branch 'remotes/jwandborg/feature_400-resize_images_to_fit_page'
...
Conflicts:
mediagoblin/db/migrations.py
mediagoblin/db/models.py
mediagoblin/process_media/__init__.py
mediagoblin/templates/mediagoblin/user_pages/media.html
mediagoblin/util.py
2011-07-16 16:28:12 -05:00
Christopher Allan Webber
5ebe69e5a0
First migration: Add markdown bio!
2011-07-14 00:00:24 -05:00
Christopher Allan Webber
fb5075e6b2
Merge remote branch 'remotes/aaronw/feature410_markdown_bio'
2011-07-13 23:19:46 -05:00
Christopher Allan Webber
c47c37ed95
Merge branch 'master' into f411_new_migrations
...
Conflicts:
mediagoblin/db/open.py
2011-07-13 23:14:42 -05:00
Christopher Allan Webber
59051a23f0
Duplicate migration numbers not allowed, bro
2011-07-13 22:32:51 -05:00
Christopher Allan Webber
511b10efda
We should *raise* MissingCurrentMigration :)
...
Thanks for the catch, Elrond.
2011-07-13 20:58:13 -05:00
Caleb Forbes Davis V
cea8f2b632
adds "state" to tags indices
2011-07-13 12:18:50 -05:00
Caleb Forbes Davis V
1580c7c5ce
adds index for searching across all users' tagged images
2011-07-13 00:22:16 -05:00
Christopher Allan Webber
c2ddd85e4a
Removing old style migrations... not in use anymore
2011-07-11 21:09:36 -05:00
Elrond
39c6b2bdc6
Move db_name default into config_spec.ini
...
The default name of the database ("mediagoblin") was coded
in db/open.py and init/celery/__init__.py.
Instead use the new config system to have this as the
default for the "db_name" config option.
2011-07-11 23:25:15 +02:00