Krzysztof Klimonda
4580a700ab
Use media/ for files created during tests. Fixes #2
2013-03-05 01:58:11 -08:00
Krzysztof Klimonda
26b6805b6f
Replace screenshot.png with logo.png in tests
2013-03-05 01:32:57 -08:00
Krzysztof Klimonda
10c9b35700
Even though not used, import models for Factory Boy
2013-03-05 01:28:39 -08:00
Isaac Bythewood
b63544905e
Remove screenshot that is outdated and no longer needed, add full AGPL license and update api.py to use logo image instead of screenshot for testing
2013-03-05 01:53:46 +00:00
Krzysztof Klimonda
26f9c76988
Don't use FACTORY_FOR when not needed
2013-03-04 15:33:09 -08:00
Krzysztof Klimonda
7a85f1b514
Use post_generation hooks to populate models with some data
...
Factory Boy provides us with a better way of populating complicated
fields (like M2M relations) than overriding _prepare class method,
so we should be using them.
2013-03-04 14:58:54 -08:00
Krzysztof Klimonda
ef818b7f82
Rewrite tests to use a Model mocker library
...
There has been issues when running a full test suite (for pinry and
the entire Django stack), and test fixtures are hard to maintain anyway,
so rewrite tests to use a Model mocker library (Factory Boy) to populate
database.
2013-03-04 12:06:00 -08:00
Krzysztof Klimonda
856d2d1e87
Allow filtering pins over submitter.username
2013-03-03 14:51:19 -08:00
Isaac Bythewood
c7e1e1cd83
Move location of users middleware
2013-03-03 22:50:29 +00:00
Isaac Bythewood
248bd25a04
Move private to users, add user filtering to JS
2013-03-03 22:47:25 +00:00
Krzysztof Klimonda
cae9fa96be
Write some more tests for all code
2013-03-03 10:09:33 -08:00
Krzysztof Klimonda
fbfd7e0239
CreateImage.get should always return HttpResponse
2013-03-03 10:08:26 -08:00
Krzysztof Klimonda
e5bd3d577d
Clean-up PinResource.build_filters method
2013-03-03 09:11:26 -08:00
Krzysztof Klimonda
03e05906f8
Reorganize core package tests into modules
2013-03-03 09:10:42 -08:00
Krzysztof Klimonda
5b777b7e14
Move the Authentication backend to the users package
2013-03-03 09:09:13 -08:00
Krzysztof Klimonda
d0d68545ca
Add "origin" field to the Pin model
...
"origin" is an optional field that stores the URI for the site
that the image has been saved from, it's going to be used only from
bookmarklet. Fixes #63
2013-03-03 08:25:42 -08:00
Krzysztof Klimonda
8c3599911e
In PinResource.save_m2m do nothing when no tags
2013-03-03 06:22:16 -08:00
Krzysztof Klimonda
6e78ce12ea
post-refactor test fixture update
2013-03-03 05:47:35 -08:00
Krzysztof Klimonda
995b69168b
use old paths for pin urls
2013-03-03 05:19:19 -08:00
Krzysztof Klimonda
6e41296d57
Move test fixtures to the correct location
2013-03-03 04:59:44 -08:00
Krzysztof Klimonda
559f054985
Write more tests for the ImageResource
2013-03-03 04:59:44 -08:00
Krzysztof Klimonda
53f05dbb6d
A general project refactor
...
Removed pins django app, and moved code to the core. Moved user related
code out of core to the users app.
2013-03-03 04:47:34 -08:00
Krzysztof Klimonda
cf86da266a
Add a very simplistic Pin access control for the API
...
As pointed in issue #75 we should get away with just checking if the pin
submitter is the currently logged in user. Assuming that we can implement
authorization for updating and deleting pins rather easily by subclassing
DjangoAuthorization so it passes the object to the Authorization backend.
2013-03-02 17:00:58 -08:00
Krzysztof Klimonda
a0e11a949e
Add a small (125x125px) square thumbnail
...
This is going to be used by a "similar images" feature #74
2013-03-02 16:12:29 -08:00
Krzysztof Klimonda
e70d9079ec
Login newly registered user
...
Rewritten register view using CBV approach, and added a authenticate/login
call after form has been validated and user created. Fixes #65
2013-03-02 12:26:54 -08:00
Krzysztof Klimonda
57aefc7d97
Mock out Files using the commited screenshot.png file for tests
2013-03-02 11:06:53 -08:00
Isaac Bythewood
fa7e8c3b83
Get basic working bookmarklet and refactor API into core
2013-02-26 23:20:50 +00:00
Isaac Bythewood
4e431e2a88
Refactor templates and and make includes for upcoming python file refactor into core and user. Also making templates easier to edit and read overall.
2013-02-26 03:27:41 +00:00
Krzysztof Klimonda
d462bfb83b
A major RESTful API rewrite
...
Rewritten API to handle creating pins for both urls
and previously-uploaded images. Added some tests for it.
2013-02-25 15:10:15 -08:00
Krzysztof Klimonda
e2a38f8a10
Add image dimensions to the API and the third image size
...
There has been some refactoring going on in the pinry.pins.models module.
The upload_to code has been refactored into its own function, images
have been moved to their own models - otherwise the number of fields
in the Pin model would skyrocket. Also ModelManagers have been written
to move image fetching and generating outside of models.
2013-02-23 21:12:11 +01:00
Isaac Bythewood
a7d571a509
Remove a bunch of old vender files, refactor locations of static and template files, force api limit on calls
2013-02-23 02:23:58 +00:00
Krzysztof Klimonda
92b54799da
Allow authentication with both Username and Email
2013-02-22 15:26:43 +01:00
Isaac Bythewood
899de27165
Now using gravatars on the interface under posts beside names
2013-02-22 02:54:04 +00:00
Krzysztof Klimonda
270cfb7ee7
Expose a gravatar hash for account via the Rest API
2013-02-22 01:28:56 +01:00
Krzysztof Klimonda
ba8a8ca7c6
Remove a backported verbatim tag now that we are using Django 1.5
2013-02-21 22:02:11 +01:00
Krzysztof Klimonda
9b20671fac
Properly quote url template tag arguments
...
A version of url introduced in Django 1.3 requires the view argument to be quoted. This change
has taken effect in Django 1.5 so the code needs updating to work with it.
2013-02-21 21:01:04 +01:00
Isaac Bythewood
f66b727072
Working on new design
2013-02-21 07:43:52 +00:00
Isaac Bythewood
3f38458bd8
Removing unused vendor libs, custom tiling works, new design started
2013-02-21 06:26:06 +00:00
Isaac Bythewood
8e8bed0efa
Rewrite the display of recent pins without the use of third-party js libs
2013-02-20 07:59:45 +00:00
Isaac Bythewood
e467a83683
Remove admin which was a temporary fix
2013-02-20 05:35:10 +00:00
Isaac Bythewood
a191f262ef
Use pushstate to change URL when swaping to a tag to make tags linkable
2012-11-08 03:00:04 +00:00
Isaac Bythewood
94d40b7054
Fix CSRF login and register bug
2012-10-02 00:45:06 +00:00
Isaac Bythewood
6cdb7c955e
Increase page size.
2012-09-29 19:38:54 +00:00
Isaac Bythewood
c1b268312b
Removed CSRF temporarily to fix many bugs.
2012-09-29 06:55:49 +00:00
Isaac Bythewood
605c25a561
Added basic admin functionality with pin integration.
2012-09-29 06:36:51 +00:00
Isaac Bythewood
ceda2d2cb0
Allow basic sorting by tag.
2012-09-28 05:28:31 +00:00
Isaac Bythewood
230a6e959f
Taggit implemented.
2012-09-28 04:42:13 +00:00
Isaac Bythewood
0a6b8b77d3
Fixing locations of static resources since we are now using compressor.
2012-08-02 00:30:28 +00:00
Isaac Bythewood
643224d575
Now using compressor and trying to fix test CSRF issue.
2012-08-02 00:22:57 +00:00
Isaac Bythewood
f00e106dfe
Add in some new settings.
2012-08-01 21:30:18 +00:00