Commit Graph

595 Commits

Author SHA1 Message Date
Isaac Bythewood
eba04c177e Update pinry tag handler and spinner 2013-03-03 13:45:27 +00:00
Krzysztof Klimonda
83f14445bf Fix reverse urls namespacing issue 2013-03-03 05:38:24 -08:00
Krzysztof Klimonda
995b69168b use old paths for pin urls 2013-03-03 05:19:19 -08:00
Isaac Bythewood
ec27f1cfb8 Bug fixes to bookmarklet and pin-form 2013-03-03 13:05:38 +00: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
68e01b5a39 Rename upload-pin to create-image
It didn't make sense to call it upload-pin as it is being used only for
creating the Image object.
2013-03-02 12:01:07 -08:00
Krzysztof Klimonda
435c41e450 Don't raise error 500 on accessing /pins/upload-pin uri
Fixes #81
2013-03-02 11:26:07 -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
0b58d8349e Working pin uploader with drag and drop functionality. 2013-02-27 22:44:56 +00:00
Isaac Bythewood
7fe3769248 Improved pin form to use post's incoming data on successful submission to auto-prepend to the list 2013-02-27 08:03:23 +00:00
Isaac Bythewood
7ee8fd6d98 Greatly improved bookmarklet pinning functionality, much better pin form 2013-02-27 07:38:38 +00:00
Isaac Bythewood
96af25f5fb Further improve lightbox by getting rid of all the data tags and use ajax call for pin 2013-02-27 06:03:05 +00:00
Isaac Bythewood
258b5ecabf Using Django on pypi since 1.5 has been released 2013-02-27 05:13:30 +00:00
Isaac Bythewood
29665a41a5 Reduce the top margin on lightbox 2013-02-27 04:37:42 +00:00
Isaac Bythewood
8ec96a07ce Greatly improved lightbox view, much cleaner and smoother 2013-02-27 04:34:44 +00:00
Isaac Bythewood
e0362a0298 Cleaning up and improveing the bookmarklet 2013-02-27 01:58:00 +00:00
Isaac Bythewood
fa7e8c3b83 Get basic working bookmarklet and refactor API into core 2013-02-26 23:20:50 +00:00
Krzysztof Klimonda
af8c0865e0 Define LOGIN_URL in project settings 2013-02-26 11:22:50 -08:00
Krzysztof Klimonda
d2727aa12c Use django-braces for CBV Mixins like LoginRequiredMixin 2013-02-26 11:22:16 -08:00
Krzysztof Klimonda
974d2a8720 In the API, return Pin resource upon creation
Fixes #68
2013-02-26 02:10:08 -08:00
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