Krzysztof Klimonda
fbfd7e0239
CreateImage.get should always return HttpResponse
pirms 11 gadiem
Krzysztof Klimonda
d4fc7e1781
Write unit tests for CombinedAuthBackend
pirms 11 gadiem
Krzysztof Klimonda
e5bd3d577d
Clean-up PinResource.build_filters method
pirms 11 gadiem
Krzysztof Klimonda
03e05906f8
Reorganize core package tests into modules
pirms 11 gadiem
Krzysztof Klimonda
5b777b7e14
Move the Authentication backend to the users package
pirms 11 gadiem
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
pirms 11 gadiem
Isaac Bythewood
13829866d1
Fix bug in appending jQuery if needed.
pirms 11 gadiem
Isaac Bythewood
08410ba50d
Spinner doesn't show if there are no more pins to load
pirms 11 gadiem
Isaac Bythewood
6abb1ffe88
Allow pin deleting from interface
pirms 11 gadiem
Krzysztof Klimonda
8c3599911e
In PinResource.save_m2m do nothing when no tags
pirms 11 gadiem
Isaac Bythewood
39aa6818f2
Tags sends [] instead of null
pirms 11 gadiem
Krzysztof Klimonda
6e78ce12ea
post-refactor test fixture update
pirms 11 gadiem
Isaac Bythewood
eba04c177e
Update pinry tag handler and spinner
pirms 11 gadiem
Krzysztof Klimonda
83f14445bf
Fix reverse urls namespacing issue
pirms 11 gadiem
Krzysztof Klimonda
995b69168b
use old paths for pin urls
pirms 11 gadiem
Isaac Bythewood
ec27f1cfb8
Bug fixes to bookmarklet and pin-form
pirms 11 gadiem
Krzysztof Klimonda
6e41296d57
Move test fixtures to the correct location
pirms 11 gadiem
Krzysztof Klimonda
559f054985
Write more tests for the ImageResource
pirms 11 gadiem
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.
pirms 11 gadiem
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.
pirms 11 gadiem
Krzysztof Klimonda
a0e11a949e
Add a small (125x125px) square thumbnail
This is going to be used by a "similar images" feature #74
pirms 11 gadiem
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
pirms 11 gadiem
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.
pirms 11 gadiem
Krzysztof Klimonda
435c41e450
Don't raise error 500 on accessing /pins/upload-pin uri
Fixes #81
pirms 11 gadiem
Krzysztof Klimonda
57aefc7d97
Mock out Files using the commited screenshot.png file for tests
pirms 11 gadiem
Isaac Bythewood
0b58d8349e
Working pin uploader with drag and drop functionality.
pirms 11 gadiem
Isaac Bythewood
7fe3769248
Improved pin form to use post's incoming data on successful submission to auto-prepend to the list
pirms 11 gadiem
Isaac Bythewood
7ee8fd6d98
Greatly improved bookmarklet pinning functionality, much better pin form
pirms 11 gadiem
Isaac Bythewood
96af25f5fb
Further improve lightbox by getting rid of all the data tags and use ajax call for pin
pirms 11 gadiem
Isaac Bythewood
258b5ecabf
Using Django on pypi since 1.5 has been released
pirms 11 gadiem
Isaac Bythewood
29665a41a5
Reduce the top margin on lightbox
pirms 11 gadiem
Isaac Bythewood
8ec96a07ce
Greatly improved lightbox view, much cleaner and smoother
pirms 11 gadiem
Isaac Bythewood
e0362a0298
Cleaning up and improveing the bookmarklet
pirms 11 gadiem
Isaac Bythewood
fa7e8c3b83
Get basic working bookmarklet and refactor API into core
pirms 11 gadiem
Krzysztof Klimonda
af8c0865e0
Define LOGIN_URL in project settings
pirms 11 gadiem
Krzysztof Klimonda
d2727aa12c
Use django-braces for CBV Mixins like LoginRequiredMixin
pirms 11 gadiem
Krzysztof Klimonda
974d2a8720
In the API, return Pin resource upon creation
Fixes #68
pirms 11 gadiem
Krzysztof Klimonda
82352d6980
Make PinResource orderable by id
Update JavaScript so it orders pins, Fixes #69
pirms 11 gadiem
Krzysztof Klimonda
c1b23b4dd5
Make sure that the Pin object is created
pirms 11 gadiem
Isaac Bythewood
73f35178ca
Improvements to lightbox to get a parallax mode
pirms 11 gadiem
Isaac Bythewood
2acdd9609b
Allow for viewing an individual tag
pirms 11 gadiem
Isaac Bythewood
12091fda00
Working new pin button that makes use of the API and loads new items in real time
pirms 11 gadiem
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.
pirms 11 gadiem
Isaac Bythewood
9f5cc2de57
Working new pin form
pirms 11 gadiem
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.
pirms 11 gadiem
Isaac Bythewood
f5ef3a0c2b
Get bookmarklet mostly setup
pirms 11 gadiem
Krzysztof Klimonda
ef44d565d4
Return JSON response from UploadImage when called from JavaScript
pirms 11 gadiem
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.
pirms 11 gadiem
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.
pirms 11 gadiem
Krzysztof Klimonda
634442dc25
Fix a small styling error in the lazy_resolve definition
pirms 11 gadiem