Skip to content

Instantly share code, notes, and snippets.

View rbanffy's full-sized avatar
🎯
Focusing

Ricardo Bánffy rbanffy

🎯
Focusing
View GitHub Profile
--- a/src/collective/composition/composition.py
+++ b/src/collective/composition/composition.py
@@ -91,19 +91,37 @@ class Composition(dexterity.Container):
#TODO: Think of a way to register available tiles
# And from here, just ask which tiles are available for this
# context
- available.append({'tile_type': "collective.composition.richtext",
+ available.append({'tile_type': "collective.composition.tiles.richtext",
'icon': '',
'title': "Rich text tile",
{% for c in breadcrumbs %}
<a href="{{ c.url }}">{{ c.title }}</a>
{% if not loop.last %}&gt;&gt;{% endif %}
{% endfor %}
@@ -88,7 +88,8 @@ if PYTHON_VERSION < (2, 6):
# patch for this bug in tarfile module - http://bugs.python.org/issue1719898
if PYTHON_VERSION == (2, 4):
- from tarfile import nts, GNUTYPE_SPARSE, normpath
+ from tarfile import nts, GNUTYPE_SPARSE
+ from os.path import normpath
def frombuf(cls, buf):
"""Construct a TarInfo object from a 512 byte string buffer.
--------------- quintagroup/transmogrifier/adapters/importing.py ---------------
index 70f21ae..57e3bcd 100644
@@ -11,9 +11,23 @@ from collective.transmogrifier.interfaces import ITransmogrifier
from quintagroup.transmogrifier.interfaces import IImportDataCorrector
+from xml.parsers.expat import ExpatError
+
EXISTING_UIDS = {}
REFERENCE_QUEUE = {}
@@ -10,14 +10,17 @@ from collective.transmogrifier.utils import defaultMatcher
from OFS.interfaces import IPropertyManager
from Products.GenericSetup.utils import PropertyManagerHelpers, NodeAdapterBase
+import logging
+logger = logging.getLogger('quintagroup.transmogrifier.propertymanager')
+
class Helper(PropertyManagerHelpers, NodeAdapterBase):
""" We need this class because PropertyManagerHelpers in _initProperties
method uses _convertToBoolean and _getNodeText methods from
<?xml version="1.0"?>
<object name="portal_workflow" meta_type="Plone Workflow Tool">
<property
name="title">Contains workflow definitions for your portal</property>
<bindings>
<default>
<bound-workflow workflow_id="simple_publication_workflow"/>
</default>
</bindings>
</object>
<?xml version="1.0"?>
<object name="portal_workflow" meta_type="Plone Workflow Tool">
<property
name="title">Contains workflow definitions for your portal</property>
<bindings>
<default>
<bound-workflow workflow_id="simple_publication_workflow"/>
</default>
<type type_id="ATFolder">
<bound-workflow workflow_id="folder_workflow"/>
2012-09-03 17:14:48 ERROR Zope.SiteErrorLog 1346703288.00.652648050008 http://localhost:8080/khronopedia/portal_quickinstaller/installProducts
Traceback (innermost last):
Module ZPublisher.Publish, line 126, in publish
Module ZPublisher.mapply, line 77, in mapply
Module ZPublisher.Publish, line 46, in call_object
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 580, in installProducts
Module Products.CMFQuickInstallerTool.QuickInstallerTool, line 512, in installProduct
- __traceback_info__: ('sc.khronopedia.site',)
Module Products.GenericSetup.tool, line 353, in runAllImportStepsFromProfile
- __traceback_info__: profile-sc.khronopedia.site:default
(7695) 2012-09-07 21:40:37.460 INFO default Commands Sending Update Status to SLS server with status code: 3.5.1
(7695) 2012-09-07 21:40:46.645 INFO EventDisp ***--------- Device connected via USB Device: \\?\USB#Vid_0fcaPid_0001&MI_00&0107 PIN (null) GUID 028E63E709828ABD07D1B0F93B5BB21E2F13497B Location ID 1d100000 Power 500
(7695) 2012-09-07 21:40:46.645 INFO default USB device PID: 0x0001, bootrom metrics: 1256 bytes
(7695) 2012-09-07 21:40:46.646 WARN** EventDisp Device connected with no PIN: (null), value of BBPIN_KEY is: (null)
(7695) 2012-09-07 21:40:46.825 WARN** default No device IP Address in transient properties for [Device name:BlackBerry pin:0x2A294BA2 model:BlackBerry hardwareID:0x4002307 GUID: 028E63E709828ABD07D1B0F93B5BB21E2F13497B - bundle:0.0.0.0]
(7695) 2012-09-07 21:40:46.827 INFO EventDisp Launching connect command for: [Device name:BlackBerry pin:0x2A294BA2 model:BlackBerry hardware
(7695) 2012-09-07 21:40:37.460 INFO default Commands Sending Update Status to SLS server with status code: 3.5.1
(7695) 2012-09-07 21:40:46.645 INFO EventDisp ***--------- Device connected via USB Device: \\?\USB#Vid_0fcaPid_0001&MI_00&0107 PIN (null) GUID 028E63E709828ABD07D1B0F93B5BB21E2F13497B Location ID 1d100000 Power 500
(7695) 2012-09-07 21:40:46.645 INFO default USB device PID: 0x0001, bootrom metrics: 1256 bytes
(7695) 2012-09-07 21:40:46.646 WARN** EventDisp Device connected with no PIN: (null), value of BBPIN_KEY is: (null)
(7695) 2012-09-07 21:40:46.825 WARN** default No device IP Address in transient properties for [Device name:BlackBerry pin:0x2A294BA2 model:BlackBerry hardwareID:0x4002307 GUID: 028E63E709828ABD07D1B0F93B5BB21E2F13497B - bundle:0.0.0.0]
(7695) 2012-09-07 21:40:46.827 INFO EventDisp Launching connect command for: [Device name:BlackBerry pin:0x2A294BA2 model:BlackBerry hardware