| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
margins, fixed Chrome width bug, wrapped checkbox in label element
|
|
|
|
|
|
|
|
| |
This is a shortcut to adding the object to a session (if
needed) and giving a commit on the session.
In reality, calling code should probably utilize the
session on its own and call commit in an appropiate place.
|
|
|
|
|
|
| |
Some parts of the code like to call .get("somefield") on
the db objects. It's easy to support this on sqlalchemy
based objects, so lets do it.
|
|
|
|
|
|
|
| |
When moving most stuff from db to db/mongo, "gmg migrate"
was left out.
Fix it now!
|
| |
|
|
|
|
|
|
| |
MediaEntry now has a get_uploader (property) loading the
appropiate User object for the MediaEntry (and caches it).
MediaComment has the same for author as get_author.
|
|
|
|
|
|
|
|
| |
While creating the new SQL model, the "state" field of
MediaEntry was left out. Currently using a plain unicode
string for it.
Maybe should use sqlalchemy.types.Enum?
|
|
|
|
|
|
|
|
| |
So that the old code can access the primary key still as
"._id".
Quite simple Python Descriptor thing.
Very generic.
|
|
|
|
|
|
|
| |
sqlalchemy gives autoloading (hopefully caching) link to
other objects as properties. So turn get_uploader on the
current mongo based stuff into a property to ease
transition.
|
|
|
|
|
|
|
|
|
| |
Replace
urlgen('ID', user=media.get_uploader().username, media=media.*)
by
media.url_for_self(urlgen)
in a few places.
It's just a lot nicer!
|
|
|
|
|
|
|
|
| |
Instead of creating the email verication key on the db
model as a default for the field, create it in the
registration view.
Now all verification key generation is only in
auth/views.py!
|
|
|
|
|
|
| |
"There doesn't seem to be any media here yet..." is now
translated also here (it's already in the list from another
place).
|
|
|
|
|
|
| |
media.get_uploader()._id loads a complete user object
without actually needing it, because media.uploader already
has the id!
|
| |
|
|
|
|
| |
And create a _fix_query_dict which converts '_id' to 'id'.
|
|
|
|
|
|
|
|
|
| |
1) MediaComment's author method conflicts with the author
field. So rename it to get_author.
2) Turn it from a normal function into a python property.
That means you call it by ".get_author" not by
".get_author()". This is exactly what sqlalchemy gives
us free of charge.
|
| |
|
|
|
|
| |
just the inherent properties of the <video> tag (and some css for style)
|
|
|
|
|
| |
So that the workaround can eventually be removed, note the
URL for the relevant bug in a comment.
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is relevant for fcgi:
Some servers (cherokee for example) put "HTTP":"off" in the
environ. And the following code in urlgen breaks on this:
if environ.get('HTTPS') or environ.get('wsgi.url_scheme') == 'https' \
or environ.get('HTTP_X_FORWARDED_PROTO') == 'https':
hostinfo['protocol'] = 'https'
workaround is to remove HTTPS:off from the environ.
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* remotes/joar/webfinger:
Added references to docstring in mediagoblin.webfinger
Removed mediagoblin.tools.feed which was accidentally included
Polishing the webfinger implementation
webfinger fully compliant with webfinger.org! Still *preliminary* solution.
Changed some thngs to be compatible with webfinger.org, still *very preliminary*
Added *very preliminary* support for webfinger
|
| |
| |
| |
| | |
and mediagoblin.webfinger.views [references mediagoblin.webfinger]
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
- Changed quotes in the templates from " to '
- Changed all link generation to use request.urlgen
- Moved xrd links data generation from template to view
- Added parsing of the account URI using urlparse
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
To my surprise, there was only ONE reference to models.py.
From open.py.
|
| |
| |
| |
| | |
And change references.
|
| |
| |
| |
| |
| | |
- Change some reference
- Provide a wrapper db/util.py
|
| |
| |
| |
| | |
And change references (one!).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Starting to move the mongo specific stuff into db/mongo.
And create thin "from db.mongo.Y import z" wrappers in
db/Y.py.
Why?
1) Will make it lots easier to switch to sql for
testing/developing.
2) The mongo stuff needs to stay around after moving to
sql, because the converter needs it.
|
| |
| |
| |
| |
| |
| |
| |
| | |
In trying to ease the migration to SQL, created an
interface to sqlalchemy that looks a lot like the interface
that is currently in use.
*WARNING* Work in progress
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This is just a start at a Migration tool from Mongo to SQL.
It fills all currently available SQL models with data from
MongoDB. A few fields in the SQL tables are left out,
because some data format migrations are needed (notably:
queue_file_name).
This thing lives in mediagoblin/db/sql/convert.py because
it has a lot of stuff hardcoded and is not, repeat not for
end users!
Hard coded:
- output database: ./mediagoblin.db (sqlite)
- Mediagoblin config: ./mediagoblin.ini
|
| |
| |
| |
| |
| |
| | |
- Add title to the MediaEntry
- Rename fp_verification_expire to fp_token_expire to
follow the mongo model.
|
| |
| |
| |
| |
| | |
- Mongokit instead of pymongo
- db.MediaEntry instead of db.media_entry (pymongo style)
|
| |
| |
| |
| |
| |
| |
| |
| | |
Run bin/python mediagoblin/db/sql/models.py and watch the
create tables on a memory sqlite db.
Also unicode strings need unicode defauls. Warning by
sqlalchemy.
|
| |
| |
| |
| |
| | |
So we can play with the sql models, let's put them in a
proper place.
|
|\ \
| | |
| | |
| | |
| | | |
* remotes/cwebber/sqlalchemy:
Beginnings of sqlalchemy models
|
| | | |
|
| |/
|/|
| |
| | |
Version numbers should adhere to PEP-386.
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
* joar/b681-comments_from_reviewing_video:
Bug 681 - Comments from reviewing the new video merge
|