mlen108 / djcroco Goto Github PK
View Code? Open in Web Editor NEWDjango model field to support Crocodoc API
License: Other
Django model field to support Crocodoc API
License: Other
Including Django 1.3-1.5 and Python 2.6-3.3
Very similar to the DetailView but instead of returning the CrocoDoc url redirect to it.
Might be easier to use a common base class?
With the below error msg
FAIL: test_document_download (djcroco.tests.tests.CrocoTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./djcroco/tests/tests.py", line 136, in test_document_download
self.assertEqual(len(response.content), 679)
AssertionError: 29 != 679
It's probably because the document isn't ready yet or there's some other kind of race conditions
We're trying to integrate Crocodoc in our Django app. But the funny situation we're in is the doc gets uploaded (but the Django Lib we're using is throwing error because its unable to find crocodo_uuid). Please look at the screenshot attached here: http://screencast.com/t/K5w4N0V8.
You can find complete stack trace here https://gist.github.com/sidharthshah/d7dac4e725a471b814ce. I'd appreciate if you can help or point us to some material in right direction .
Thank you,
Sidharth
Yours?
Have you written a library for the Crocodoc API? Submit it to [email protected].
Or extend nicely README
Delete the doc from Crocodoc while removing local object instance
Needs test of:
Python 2.6-3.3
Django 1.3-1.5
?
Just in case someone needs it
E.g.
https://github.com/mattack108/djcroco/blob/master/djcroco/fields.py#L165
Crocodoc does not support images, so we have to generate thumbnails somehow (bear in mind minimum dependency)
One of the dependencies is a bit broken, see for more details
https://github.com/crocodoc/crocodoc-python/pull/8
It does not look like it's going to be merged any time soon.
Also if we have custom code for dealing with the API we might end up with better code because this looks terrible for now
https://github.com/mattack108/djcroco/blob/master/djcroco/fields.py#L181-199
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.