Generated on Sun, 20 Mar 2005 15:32:19 CET
There are currently 54 XXX/TODO/BBB comments.
# BBB remove these two dummy methods manage_addExternalMethod(self,'switchATCT2CMF', 'DUMMY: Set reenable CMF type', PROJECTNAME+'.Install',
up other XXX added security assertions fixed implementation of AT Event rewrote some doc strings 2004-04-04 23:47 tiran
* Added XXX report tool to ATCT. It's mostly a copy from the Zope3 XXX tools. [tiran] * Fixed [ 1049018 ] url field on Link doesn't allow mailto. Also added an
* Added XXX report tool to ATCT. It's mostly a copy from the Zope3 XXX tools. [tiran] * Fixed [ 1049018 ] url field on Link doesn't allow mailto. Also added an
"""Beautify a XXX report. Creates a HTML file from a XXXReport file.
ATContentTypes - Developer report tools: XXX/TODO/BBB comments
Generated on %(reporttime)s
Summary
There are currently %(commentcount)s XXX/TODO/BBB comments.
Listing
# XXX can't handle nested topics map = {'acquireCriteria' : 'setAcquireCriteria'} def custom(self):
# XXX atct._fixLargePloneFolder() try: kwargs['default_language'] = pprop.aq_explicit.site_properties.default_language except (AttributeError, KeyError):
# XXX more self.failUnless(migrated.getRemoteUrl() == url, 'URL mismatch: %s / %s' \ % (migrated.getRemoteUrl(), url))
# XXX not in the current version return dummy = self._dummy field = dummy.getField('customView')
# XXX not in the current version return dummy = self._dummy field = dummy.getField('customViewFields')
#self.failUnless(old.getXXX() == new.getXXX(), 'XXX mismatch: %s / %s' \ # % (old.getXXX(), new.getXXX())) self.assertEquals(new.start_date, DT2dt(new.start())) self.assertEquals(new.end_date, DT2dt(new.end()))
# XXX add a cmf based object before cataloging result, time, ctime = t._catalogCMFtypes()
#XXX obj.setFormat('text/plain') tests = []
# XXX todo def test_migration(self): old = self._cmf
# XXX more tests.append(TestSiteATFile)
# XXX not a real test exif_data = self._ATCT.getEXIF() self.failUnless(isinstance(exif_data, dict), type(exif_data))
# XXX not a real test r, m = self._ATCT.getEXIFOrientation() def test_transform(self): self._ATCT.transformImage(2) def test_autotransform(self): self._ATCT.autoTransformImage() def test_broken_pil(self):
# XXX more self.failUnless(migrated.getRemoteUrl() == url, 'URL mismatch: %s / %s' \ % (migrated.getRemoteUrl(), url))
# XXX more tests.append(TestSiteATFolder)
# XXX more tests.append(TestSiteATNewsItem)
# XXX this test does't work because it expects a CMF Folder! # now let's see if inheritance kicks in even thru a non # constrained type
# BBB remove import from PloneLanguageTool later try: from Products.CMFPlone.interfaces.Translatable import ITranslatable except ImportError:
# XXX more def compareAfterMigration(self, migrated, mod=None, created=None): self.failUnless(isinstance(migrated, self.klass),
#XXX self.failUnlessEqual(tuple(vocab), ()) def test_layout(self): dummy = self._dummy
# BBB CMFPlone 2.0.x try: from Products.CMFPlone.interfaces.Translatable import ITranslatable except ImportError:
# XXX this should go into LinguaPlone! translate_actions = ({ 'id' : 'translate', 'name' : 'Translate',
# BBB remove is not None test later if ITranslatable is not None and ITranslatable.isImplementedByInstancesOf(class_): class_.actions = updateActions(class_, translate_actions)
# XXX what should be returned if no data is present? security.declareProtected(CMFCorePermissions.View, 'get_data') def get_data(self):
# XXX no error catching fh, mimetype, filename, size = self.loadFileFromURL(value, contenttypes=('image',)) mutator = self.getPrimaryField().getMutator(self)
# XXX this is ugly # When an object is initialized the first time we have to # set the filename and mimetype. # In the case the value is empty/None we must not set the value because
# XXX disabled for now, see # https://sourceforge.net/tracker/index.php?func=detail&aid=974102&group_id=55262&atid=645337 #validators = ('isInternationalPhoneNumber',), validators= (),
# XXX come up with a nice cmp for types return cmp(self.Title(), other) def __hash__(self):
XXX check if PIL removes EXIF when rescaling with orig_size """ cache = '_image_exif'
# XXX bar exception, LOG exif_data = {} # remove some unwanted elements lik thumb nails for key in ('JPEGThumbnail', 'TIFFThumbnail'):
# XXX except all, LOG return None
# XXX description is wrong! description=("The address of the location. Prefix is " "optional; if not provided, the link will be relative."), description_msgid = "help_url",
TODO explain me
TODO explain me
TODO explain me
README
TODO explain me
TODO explain me
Remove old objects first?
TODO explain me
TODO explain me
Remove old objects first?
# XXX not impelemented raise NotImplementedError, "Migrating a subset of types is not implemented" if isinstance(portal_types, basestring): portal_types = (portal_types,)
# XXX acquire vs. enabled is not implemented DISABLED = 0 # use default behavior of PortalFolder which uses the FTI information ENABLED = 1 # allow types from locallyAllowedTypes ACQUIRE = -1 # acquire enabled/disabled and locallyAllowedTypes from parent
# XXX maybe we want also to allow other FTIs if myfti.filter_content_types: possible_ftis = [fti for fti in possible_ftis if myfti.allowType(fti.getId())]
# XXX alan reported it, add logging! continue serial = revision['serial'] # get the revision object and wrap it in a context wrapper
# XXX more tests? response = self.publish('%s/' % self.obj_path, self.basic_auth) self.assertStatusEqual(response.getStatus(), 200) #
# XXX more tests? response = self.publish('%s/' % self.obj_path, self.basic_auth) self.assertStatusEqual(response.getStatus(), 200) #
# XXX more tests? response = self.publish('%s/' % self.obj_path, self.basic_auth) self.assertStatusEqual(response.getStatus(), 200) #
# XXX more tests? response = self.publish('%s/view' % self.obj_path, self.basic_auth) self.assertStatusEqual(response.getStatus(), 200) # OK
# XXX security tests? response = self.publish('%s/folder_localrole_form' % self.obj_path, self.basic_auth) self.assertStatusEqual(response.getStatus(), 200) # OK