Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit d50e9f11ad3f7008c26282213ea30cfde2a49dcb @taito taito committed Apr 5, 2012
Showing with 4,714 additions and 0 deletions.
  1. +10 −0 .gitignore
  2. +1 −0 README.rst
  3. +6 −0 collective/__init__.py
  4. +10 −0 collective/cropimage/Extensions/Install.py
  5. 0 collective/cropimage/Extensions/__init__.py
  6. +8 −0 collective/cropimage/__init__.py
  7. 0 collective/cropimage/browser/__init__.py
  8. +62 −0 collective/cropimage/browser/configure.zcml
  9. +5 −0 collective/cropimage/browser/interfaces.py
  10. +1,600 −0 collective/cropimage/browser/javascripts/jquery.Jcrop.js
  11. +246 −0 collective/cropimage/browser/javascripts/jquery.Jcrop.min.js
  12. +123 −0 collective/cropimage/browser/javascripts/jquery.color.js
  13. +16 −0 collective/cropimage/browser/javascripts/jquery.min.js
  14. +59 −0 collective/cropimage/browser/miscellaneous.py
  15. +58 −0 collective/cropimage/browser/stylesheets/main.css
  16. +250 −0 collective/cropimage/browser/template.py
  17. +18 −0 collective/cropimage/browser/templates/controlpanel.pt
  18. +62 −0 collective/cropimage/browser/templates/crop_image.pt
  19. +32 −0 collective/cropimage/configure.zcml
  20. +4 −0 collective/cropimage/docs/CONTRIBUTORS.rst
  21. +8 −0 collective/cropimage/docs/CREDITS.rst
  22. +19 −0 collective/cropimage/docs/HISTORY.rst
  23. +17 −0 collective/cropimage/docs/INSTALL.rst
  24. +30 −0 collective/cropimage/docs/LICENSE.rst
  25. +129 −0 collective/cropimage/docs/Makefile
  26. +24 −0 collective/cropimage/docs/README.rst
  27. 0 collective/cropimage/docs/_static/.gitignore
  28. +212 −0 collective/cropimage/docs/conf.py
  29. +55 −0 collective/cropimage/docs/index.rst
  30. +63 −0 collective/cropimage/id.py
  31. +84 −0 collective/cropimage/locales/en/LC_MESSAGES/inicie.cropimage.po
  32. +84 −0 collective/cropimage/locales/fi/LC_MESSAGES/inicie.cropimage.po
  33. +87 −0 collective/cropimage/locales/inicie.cropimage.pot
  34. +84 −0 collective/cropimage/locales/sv/LC_MESSAGES/inicie.cropimage.po
  35. +18 −0 collective/cropimage/profiles/default/actions.xml
  36. +6 −0 collective/cropimage/profiles/default/browserlayer.xml
  37. +22 −0 collective/cropimage/profiles/default/controlpanel.xml
  38. +4 −0 collective/cropimage/profiles/default/cssregistry.xml
  39. +7 −0 collective/cropimage/profiles/default/jsregistry.xml
  40. +4 −0 collective/cropimage/profiles/default/metadata.xml
  41. +11 −0 collective/cropimage/profiles/default/registry.xml
  42. +4 −0 collective/cropimage/profiles/uninstall/registry.xml
  43. 0 collective/cropimage/tests/__init__.py
  44. +47 −0 collective/cropimage/tests/base.py
  45. +379 −0 collective/cropimage/tests/functional/browser.txt
  46. BIN collective/cropimage/tests/image/image.png
  47. +127 −0 collective/cropimage/tests/test_CropImageIDControlPanelForm.py
  48. +195 −0 collective/cropimage/tests/test_CropImageView.py
  49. +22 −0 collective/cropimage/tests/test_ID.py
  50. +83 −0 collective/cropimage/tests/test_IID.py
  51. +77 −0 collective/cropimage/tests/test_Miscellaneous.py
  52. +103 −0 collective/cropimage/tests/test_functional.py
  53. +99 −0 collective/cropimage/tests/test_setup.py
  54. +40 −0 setup.py
@@ -0,0 +1,10 @@
+*.egg-info
+*.mo
+*.pyc
+*.pyo
+*~
+.DS_Store
+.long-description.html
+collective/cropimage/docs/_build/*
+dist
+setup.cfg
@@ -0,0 +1 @@
+See `collective/cropimage/docs/README.rst <https://github.com/taito/collective.cropimage/blob/master/collective/cropimage/docs/README.rst>`_
@@ -0,0 +1,6 @@
+# See http://peak.telecommunity.com/DevCenter/setuptools#namespace-packages
+try:
+ __import__('pkg_resources').declare_namespace(__name__)
+except ImportError:
+ from pkgutil import extend_path
+ __path__ = extend_path(__path__, __name__)
@@ -0,0 +1,10 @@
+from Products.CMFCore.utils import getToolByName
+
+
+def uninstall(self):
+ setup_tool = getToolByName(self, 'portal_setup')
+ setup_tool.runAllImportStepsFromProfile(
+ 'profile-collective.cropimage:uninstall'
+ )
+ setup_tool.setBaselineContext('profile-Products.CMFPlone:plone')
+ return "Ran all uninstall steps."
No changes.
@@ -0,0 +1,8 @@
+from zope.i18nmessageid import MessageFactory
+
+
+_ = MessageFactory("collective.cropimage")
+
+
+def initialize(context):
+ """Initializer called when used as a Zope 2 product."""
No changes.
@@ -0,0 +1,62 @@
+<configure
+ i18n_domain="collective.cropimage"
+ xmlns:browser="http://namespaces.zope.org/browser"
+ xmlns="http://namespaces.zope.org/zope"
+ >
+
+ <browser:resourceDirectory
+ directory="javascripts"
+ layer=".interfaces.ICollectiveCropimageLayer"
+ name="collective.cropimage.javascripts"
+ />
+
+ <browser:resourceDirectory
+ directory="stylesheets"
+ layer=".interfaces.ICollectiveCropimageLayer"
+ name="collective.cropimage.stylesheets"
+ />
+
+ <browser:page
+ class=".template.CropImageIDControlPanelView"
+ for="Products.CMFPlone.interfaces.IPloneSiteRoot"
+ layer=".interfaces.ICollectiveCropimageLayer"
+ name="crop-image-controlpanel"
+ permission="cmf.ManagePortal"
+ />
+
+ <browser:page
+ class=".template.CropImageView"
+ for="*"
+ layer=".interfaces.ICollectiveCropimageLayer"
+ name="crop-image"
+ permission="cmf.ModifyPortalContent"
+ />
+
+ <browser:page
+ attribute="image_fields"
+ class=".miscellaneous.Miscellaneous"
+ for="*"
+ layer=".interfaces.ICollectiveCropimageLayer"
+ name="image-fields"
+ permission="cmf.ModifyPortalContent"
+ />
+
+ <browser:page
+ attribute="has_image"
+ class=".miscellaneous.Miscellaneous"
+ for="*"
+ layer=".interfaces.ICollectiveCropimageLayer"
+ name="has-image"
+ permission="cmf.ModifyPortalContent"
+ />
+
+ <browser:page
+ attribute="cropped_image"
+ class=".miscellaneous.Miscellaneous"
+ for="*"
+ layer=".interfaces.ICollectiveCropimageLayer"
+ name="cropped-image"
+ permission="zope2.View"
+ />
+
+</configure>
@@ -0,0 +1,5 @@
+from zope.interface import Interface
+
+
+class ICollectiveCropimageLayer(Interface):
+ """Marker interface for browserlayer."""
Oops, something went wrong.

0 comments on commit d50e9f1

Please sign in to comment.