Commit Graph

331 Commits

Author SHA1 Message Date
Krzysztof Klimonda
82352d6980 Make PinResource orderable by id
Update JavaScript so it orders pins, Fixes #69
2013-02-26 01:21:57 -08:00
Krzysztof Klimonda
c1b23b4dd5 Make sure that the Pin object is created 2013-02-26 01:12:06 -08:00
Isaac Bythewood
73f35178ca Improvements to lightbox to get a parallax mode 2013-02-26 06:46:55 +00:00
Isaac Bythewood
2acdd9609b Allow for viewing an individual tag 2013-02-26 05:56:42 +00:00
Isaac Bythewood
12091fda00 Working new pin button that makes use of the API and loads new items in real time 2013-02-26 05:23:31 +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
Isaac Bythewood
9f5cc2de57 Working new pin form 2013-02-26 01:54:02 +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
Isaac Bythewood
f5ef3a0c2b Get bookmarklet mostly setup 2013-02-25 04:34:49 +00:00
Krzysztof Klimonda
ef44d565d4 Return JSON response from UploadImage when called from JavaScript 2013-02-25 05:19:26 +01:00
Krzysztof Klimonda
d0a71244b5 Another major Pinry model rewrite
Generate thumbnail and standard image on request, and use
http://github.com/mirumee/django-images for generating them. Also,
remove the CreatePin page as pin creation is going to be done
in JavaScript. Create UploadImage view for uploading images from
computer.
2013-02-25 04:08:35 +01:00
Krzysztof Klimonda
4f2b94616c Remove pinry.pins.views.delete_pin
REST API should be used to delete pins anyway, so remove the old code
that is not being used.
2013-02-25 01:22:38 +01:00
Krzysztof Klimonda
634442dc25 Fix a small styling error in the lazy_resolve definition 2013-02-24 18:18:22 +01:00
Krzysztof Klimonda
4ad6f599cd Move ValidationError messages to a dictionary that can be accessed from PinForm.clean 2013-02-24 18:10:44 +01:00
Krzysztof Klimonda
4b2fc75286 Simplify the PinForm.clean method
I have a gut feeling that we could refactor some code out of this method, but for now I'll just clean it up a bit.
2013-02-24 17:20:20 +01:00
Krzysztof Klimonda
98bdbfd900 Rewrite new_pin into a Class Based View 2013-02-24 16:56:03 +01:00
Krzysztof Klimonda
b349c0e3ff Move custom ModelManagers to the managers.py module 2013-02-24 15:58:11 +01:00
Krzysztof Klimonda
2b5ae4829d Delete Pin.__init__ as we are not doing anything special 2013-02-23 23:54:49 +01: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
513827e128 Some lightbox improvements 2013-02-23 06:28:02 +00:00
Isaac Bythewood
2264d96528 Have a working custom lightbox plugin now 2013-02-23 04:42:22 +00:00
Isaac Bythewood
5a74253bf8 Better design implemented that removes a lot of white space 2013-02-23 03:42:47 +00: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
7420e8eea1 Use the proxy model for Pin.submitter so Tastypie uses a correct model for its FKs
Tastypie's ModelResource makes use of the underlying Model class to figure out its fields. It obviously
breaks when there is inconsistency with models, which is rather rare, but possible to accomplish (which I've
proven with the previous commit).
2013-02-22 01:53:18 +01: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
ed4f308144 Fix bug in Palette mode not being supported in JPEG to convert to RGB before JPEG save. 2012-11-01 03:35:57 +00:00
Isaac Bythewood
94d40b7054 Fix CSRF login and register bug 2012-10-02 00:45:06 +00:00
Isaac Bythewood
fde97b05c6 Increase API limit. 2012-09-29 19:42:16 +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
927fb66479 Fix image resizing. 2012-08-02 01:09:16 +00:00
Isaac Bythewood
6f6bed401a Fix thumbnails. 2012-08-02 00:45:00 +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
Isaac Bythewood
d92d30bb94 Added some production settings. Moving to travis-ci for testing. Added feature to stop new registrations. 2012-08-01 03:06:41 +00:00
Isaac Bythewood
de45705e62 Cleaning up code. 2012-07-25 02:28:01 +00:00
Isaac Bythewood
04d12ac0ad Improve IE support and move options to right side of images with some padding. 2012-07-25 02:11:05 +00:00