r252644 - in collective.zipfiletransport/trunk: collective/zipfiletransport/browser docs
"Encolpe Degoute" <svn-changes-z4DKO/[email protected]> Thu, 17 Oct 2013 02:23:52 +0000 (UTC)
| Newsgroups | gmane.comp.web.zope.plone.collective.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: encolpe
Date: Thu Oct 17 02:23:51 2013
New Revision: 252644
Removed:
collective.zipfiletransport/trunk/collective/zipfiletransport/browser/common.py
Modified:
collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py
collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipimport.py
collective.zipfiletransport/trunk/docs/CONTRIBUTORS.txt
collective.zipfiletransport/trunk/docs/HISTORY.txt
Log:
Remove uneeded 'common' module and use instead plone.app.form.base
Modified: collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py
==============================================================================
--- collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py (original)
+++ collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipexport.py Thu Oct 17 02:23:51 2013
@@ -23,14 +23,15 @@
import logging
from zope.formlib.form import FormFields, action
+from plone.app.form.base import EditForm
from zope.component import getUtility
from zope.interface import implements
-from collective.zipfiletransport.utilities.interfaces import IZipFileTransportUtility
-from collective.zipfiletransport.browser.interfaces import IExport
-from collective.zipfiletransport.browser.common import BaseForm
from widgets import ExportWidget
import os
+
+from collective.zipfiletransport.utilities.interfaces import IZipFileTransportUtility
+from collective.zipfiletransport.browser.interfaces import IExport
from collective.zipfiletransport import ZipFileTransportMessageFactory as _
class ExportFormAdapter(object):
@@ -50,7 +51,7 @@
filename = property(get_zipfile_name, set_zipfile_name)
-class ExportForm(BaseForm):
+class ExportForm(EditForm):
""" Render the export form """
implements(IExport)
Modified: collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipimport.py
==============================================================================
--- collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipimport.py (original)
+++ collective.zipfiletransport/trunk/collective/zipfiletransport/browser/zipimport.py Thu Oct 17 02:23:51 2013
@@ -22,15 +22,16 @@
__version__ = '$ Revision 0.0 $'[11:-2]
from zope.formlib.form import FormFields, action
+from plone.app.form.base import EditForm
+
from zope.component import getUtility
from zope.interface import implements
from zope.app.form.browser.textwidgets import FileWidget
+
from collective.zipfiletransport.utilities.interfaces import IZipFileTransportUtility
-from collective.zipfiletransport.browser.common import BaseForm
from collective.zipfiletransport.browser.interfaces import IImport
from collective.zipfiletransport import ZipFileTransportMessageFactory as _
-
class ImportFormAdapter(object):
""" Adapter for the import form """
@@ -82,7 +83,7 @@
overwrite = property(get_overwrite, set_overwrite)
excludefromnav = property(get_excludefromnav, set_excludefromnav)
-class ImportForm(BaseForm):
+class ImportForm(EditForm):
""" Render the import form """
implements(IImport)
Modified: collective.zipfiletransport/trunk/docs/CONTRIBUTORS.txt
==============================================================================
--- collective.zipfiletransport/trunk/docs/CONTRIBUTORS.txt (original)
+++ collective.zipfiletransport/trunk/docs/CONTRIBUTORS.txt Thu Oct 17 02:23:51 2013
@@ -6,5 +6,5 @@
- JC Brand
- Cillian de Roiste
- Mathieu Le Marec - Pasquet (kiorky)
-
+ - Encolpe Degoute (encolpe)
Modified: collective.zipfiletransport/trunk/docs/HISTORY.txt
==============================================================================
--- collective.zipfiletransport/trunk/docs/HISTORY.txt (original)
+++ collective.zipfiletransport/trunk/docs/HISTORY.txt Thu Oct 17 02:23:51 2013
@@ -7,6 +7,7 @@
* Removed KSS Support [pbauer]
* Remove old overrides [encolpe]
* Add dexterity container support [encolpe]
+ * Use plone.app.form instead of custom based on formlib [encolpe]
3.2.2
-----
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk