Giter Club home page Giter Club logo

django-syncr's People

Contributors

philgyford avatar ramusus avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

django-syncr's Issues

Add Pinboard syncing?

Might be a near duplicate of the Delicious syncing, although given that's currently rather rudimentary, it might be worth improving the Delicious syncing first, then adding Pinboard?

http://pinboard.in/api/

Write a README

Would be good to have some kind of general intro and basic installation instructions.

Flickr API returning invalid XML

eg, doing

f.syncPhoto('5577510939')

generates fatal errors because there's an invalid XML character in the EXIF data.

Also see http://tech.groups.yahoo.com/group/yws-flickr/message/6963

Not sure of the best way to handle this.

Traceback:
File "/Users/phil/.virtualenvs/django-syncr/lib/python2.6/site-packages/django/core/handlers/base.py" in get_response
  111.                         response = callback(request, *callback_args, **callback_kwargs)
File "/Users/phil/Projects/personal/django-syncrproject/syncrproject/../syncrproject/views.py" in sync
  34.             f.syncPhoto('5577510939')
File "/Users/phil/Projects/personal/django-syncrproject/syncrproject/../syncrproject/syncr/app/flickr.py" in syncPhoto
  337.         photo = self._syncPhoto(photo_result, refresh=refresh)
File "/Users/phil/Projects/personal/django-syncrproject/syncrproject/../syncrproject/syncr/app/flickr.py" in _syncPhoto
  216.         exif_data = self.getExifInfo(photo_id)
File "/Users/phil/Projects/personal/django-syncrproject/syncrproject/../syncrproject/syncr/app/flickr.py" in getExifInfo
  150.             result = self.flickr.photos_getExif(photo_id=photo_id)
File "/Users/phil/.virtualenvs/django-syncr/lib/python2.6/site-packages/flickrapi/__init__.py" in handler
  349.                     parse_format=args['format'], **args)
File "/Users/phil/.virtualenvs/django-syncr/lib/python2.6/site-packages/flickrapi/__init__.py" in __wrap_in_parser
  435.         return parser(self, data)
File "/Users/phil/.virtualenvs/django-syncr/lib/python2.6/site-packages/flickrapi/__init__.py" in parse_xmlnode
  252.         rsp = XMLNode.parse(rest_xml, store_xml=True)
File "/Users/phil/.virtualenvs/django-syncr/lib/python2.6/site-packages/flickrapi/xmlnode.py" in parse
  96.         dom = xml.dom.minidom.parseString(xml_str)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/minidom.py" in parseString
  1928.         return expatbuilder.parseString(string)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/expatbuilder.py" in parseString
  940.     return builder.parseString(string)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/expatbuilder.py" in parseString
  223.             parser.Parse(string, True)

Exception Type: ExpatError at /sync/flickr/syncphoto/
Exception Value: not well-formed (invalid token): line 144, column 9

PhotoSet admin requires urlpatterns

In the admin, viewing the list of PhotoSets, and individual PhotoSets, throws errors about missing views.

One fix is, in your project, to add something like this to your urls.py:

from django.views.generic import DetailView
from syncr.flickr.models import Photo, PhotoSet

...

    url(r'^photos/(?P<year>\d{4})/(?P<month>\d{2})/(?P<day>\d{2})/(?P<slug>[\w-]+)/$', DetailView.as_view(model=Photo), name='photo_detail'),
    url(r'^photos/sets/(?P<pk>\d+)/$', DetailView.as_view(model=PhotoSet), name='photoset_detail'),

This won't make those URLs function as there are no templates, but it will be enough to make admin screens appear without errors.

It would be good to make this work better out-of-the-box. Not sure how is best.

Original issue at Google Code:
http://code.google.com/p/django-syncr/issues/detail?id=40 "This error occurs because of the permalink decorator on the model."

Tagging up mangles Flickr tags that have space/punctuation

Flickr tags are allowed to contain spaces and punctuation (eg "Phil Gyford", 't-shirt'). Their URL-ified version removes these ("philgyford", "tshirt").

The Tagging app that django-syncr uses only stores tags in their URLified form. Ideally it should keep the original "pretty" version too.

Haven't checked to see if this is an issue with Delicious etc - can't remember what kind of tags they allow.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.