[Zope-CMF] CMF Collector: Open Issues

2005-10-04 Thread tseaver
The following supporters have open issues assigned to them in this collector
(http://www.zope.org/Collectors/CMF).

Assigned and Open


  efge

- "CMFSetup: provide non-ascii im- and exports",
  [Accepted] http://www.zope.org/Collectors/CMF/292

- "CMFSetup doesn't correctly detect DCWorkflow on export",
  [Accepted] http://www.zope.org/Collectors/CMF/298


  jens

- "FSPropertiesObject.py cannot handle multiline input for lines, text 
attributes",
  [Accepted] http://www.zope.org/Collectors/CMF/271


  mhammond

- "Windows DevelopmentMode penalty in CMFCore.DirectoryView",
  [Accepted] http://www.zope.org/Collectors/CMF/366


  mj

- "CMFSetup doesn't correctly detect DCWorkflow on export",
  [Accepted] http://www.zope.org/Collectors/CMF/298


Pending / Deferred Issues

- "CMFCalendar weekday locale issue",
  [Pending] http://www.zope.org/Collectors/CMF/237

- "Wrong cache association for FSObject",
  [Pending] http://www.zope.org/Collectors/CMF/255

- "CMFSetup: Windows exports contain CR/LF, LF and even CR newlines",
  [Pending] http://www.zope.org/Collectors/CMF/266

- "PortalCatalog.ZopeFindAndApply should probably also search in 
opaqueItems",
  [Pending] http://www.zope.org/Collectors/CMF/296

- "WorkflowTool should recurse into opaqueItems",
  [Pending] http://www.zope.org/Collectors/CMF/297

- "add External Methods to workflow script handling",
  [Pending] http://www.zope.org/Collectors/CMF/329

- "Can't invalidate skin items in a RAMCacheManager",
  [Pending] http://www.zope.org/Collectors/CMF/343

- "CMFSetup: Workflow Tool export fails with workflows which have scripts",
  [Pending] http://www.zope.org/Collectors/CMF/373

- "CMFCore.Skinnable.SkinnableObjectManager can merge skin data",
  [Pending] http://www.zope.org/Collectors/CMF/375

- "Proxy Roles does't work for a Script using portal_catalog.searchResults",
  [Pending] http://www.zope.org/Collectors/CMF/380

- "WorkflowAction deprecated warning should not printed for WorkflowMethod",
  [Pending] http://www.zope.org/Collectors/CMF/388


Pending / Deferred Features

- "Favorite.py: queries and anchors in remote_url",
  [Pending] http://www.zope.org/Collectors/CMF/26

- "Allow flexible date editing in Event.py (CMFCalendar)",
  [Pending] http://www.zope.org/Collectors/CMF/40

- "DefaultDublinCore should have Creator property",
  [Pending] http://www.zope.org/Collectors/CMF/61

- "Make changeFromProperties accept sequences too",
  [Pending] http://www.zope.org/Collectors/CMF/99

- "path criteria on Topic should honor VHM",
  [Pending] http://www.zope.org/Collectors/CMF/111

- "Document.py: universal newlines",
  [Pending] http://www.zope.org/Collectors/CMF/174

- "Permissions in PortalFolder: invokeFactory()",
  [Pending] http://www.zope.org/Collectors/CMF/175

- "Add condition for transition's action like other action",
  [Pending] http://www.zope.org/Collectors/CMF/207

- "Major action enhancement",
  [Pending] http://www.zope.org/Collectors/CMF/232

- "portal_type is undefined in initialization code",
  [Pending] http://www.zope.org/Collectors/CMF/248

- "Action._listsActions() should be more safe",
  [Pending] http://www.zope.org/Collectors/CMF/253

- "Expose Document text_format metadata",
  [Pending] http://www.zope.org/Collectors/CMF/285

- "customization of type of homefolder on creation",
  [Pending] http://www.zope.org/Collectors/CMF/288

- "Allow contentFilter to use review_state",
  [Pending] http://www.zope.org/Collectors/CMF/294

- "CMFTopic Does Not Cache",
  [Pending] http://www.zope.org/Collectors/CMF/295

- "Wishlist: a flag that tags the selected action.",
  [Pending] http://www.zope.org/Collectors/CMF/301

- "CMFDefault should make use of allowCreate()",
  [Pending] http://www.zope.org/Collectors/CMF/340

- "Nested Skins",
  [Pending] http://www.zope.org/Collectors/CMF/377

- "CatalogVariableProvider code + tests",
  [Pending] http://www.zope.org/Collectors/CMF/378

- "manage_doCustomize() : minor additions",
  [Pending] http://www.zope.org/Collectors/CMF/382



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] CMFTestCase: Best way to create the CMF site?

2005-10-04 Thread Paul Winkler
Hi folks,

cc'ing Stefan 'cause it's his code :-)
but I thought it would be of interest to this list.

I've been using CMFTestCase to test my CMF tools.
But lately I've discovered that, if I follow the practice demonstrated
in CMFTestCase/testSkeleton.py, and create the CMF site once at
module level, then I have fatally polluted the environment for any
modules that may run later, e.g. other test modules.

For example, if I install CMF (1.4.8)  and one of my own Products, which
product contains this line:

# Create the CMF site once.
CMFTestCase.setupCMFSite()

 and then I run "./bin/zopectl test -v", then
I get about 25 new errors from core CMF tests like so:

==
ERROR: test_Image_RenameKeepsWorkflowState
(Products.CMFDefault.tests.test_Image
..TestImageCopyPaste)
--
Traceback (most recent call last):
  File "/zope/PaulInst2/Products/CMFDefault/tests/test_Image.py", line 65,
in setUp
self.root.manage_addProduct['CMFDefault'].manage_addCMFSite('cmf')
  File "/zope/PaulInst2/Products/CMFDefault/Portal.py", line 339, in
manage_addCMFSite
p = gen.create(self, id, create_userfolder)
  File "/zope/PaulInst2/Products/CMFDefault/Portal.py", line 309, in create
parent._setObject(id, portal)
  File "/zope/ZopeSoftwareHome/lib/python/OFS/ObjectManager.py", line 248,
in _setObject
v=self._checkId(id)
  File "/zope/ZopeSoftwareHome/lib/python/OFS/ObjectManager.py", line 81,
in checkValidId
raise BadRequest, (
BadRequest: The id "cmf" is invalid - it is already in use.

==


This goes away if I delete my Product, so it's pretty clearly caused by my
test module leaving the CMF site around.

So, how do I clean up something that I created at module level?
And if that's not the right way to set up the site - what is?

I can't create the site in afterSetUp() because apparently getPortal()
needs to be able to find the portal already before that's called.

At one time, I naively had it set up in getPortal() but that seems
to have worked only in one product and only by bizarre coincidence as it
failed in every other product test I tried it with.
(Random assortment of BadRequest and ReadConflictErrors, I was
never able to sort it all out.) So that seems unlikely to be the Right
Thing (tm).

I'd rather not ditch CMFTestCase altogether, it has some nice
features that I find to be real time (and brain) savers.

-- 
Paul Winkler
http://www.slinkp.com



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Failing tests in CMF 1.4.8?

2005-10-04 Thread Paul Winkler
Does anybody else get one failure and one error from the unit tests
on a fresh install of CMF 1.4.8?
Will there be a 1.4.9? If so, these prob'ly oughta be looked at...
I searched the collector and didn't find anything related to these tests.
I'm using Zope 2.7.7, Python 2.3.5 on linux.

[EMAIL PROTECTED] PaulInst2]$ ls Products/
CMFActionIcons  CMFCalendar  CMFCore  CMFDefault  CMFTopic  DCWorkflow
[EMAIL PROTECTED] PaulInst2]$ ./bin/zopectl test
Running tests via: /usr/local/bin/python
/zope/Zope-2.7.7-SoftwareHome/bin/test.
py -v --config-file /zope/PaulInst2/etc/zope.conf --libdir Products
Running unit tests at level 1
Running unit tests from /zope/PaulInst2/Products
Parsing /zope/PaulInst2/etc/zope.conf
.
.
.
...E...F.
.
.
.
.
.
.
==
ERROR: test_invokeFactory
(Products.CMFCore.tests.test_PortalFolder.PortalFolder
FactoryTests)
--
Traceback (most recent call last):
  File "/zope/PaulInst2/Products/CMFCore/tests/test_PortalFolder.py", line
78, i
n test_invokeFactory
f.invokeFactory( type_name='Dummy Content', id='foo' )
  File "/zope/PaulInst2/Products/CMFCore/PortalFolder.py", line 367, in
invokeFa
ctory
pt.constructContent(type_name, self, id, RESPONSE, *args, **kw)
  File "/zope/PaulInst2/Products/CMFCore/TypesTool.py", line 709, in
constructCo
ntent
ob = info.constructInstance(container, id, *args, **kw)
  File "/zope/PaulInst2/Products/CMFCore/TypesTool.py", line 388, in
constructIn
stance
m = self._getFactoryMethod(container)
  File "/zope/PaulInst2/Products/CMFCore/TypesTool.py", line 334, in
_getFactory
Method
raise ValueError, ('Product factory for %s was undefined' %
ValueError: Product factory for  was undefined

==
FAIL: test_contentPaste
(Products.CMFCore.tests.test_PortalFolder.PortalFolderTests)
--
Traceback (most recent call last):
  File "/zope/PaulInst2/Products/CMFCore/tests/test_PortalFolder.py", line
370,
in test_contentPaste
assert 'dummy' in sub1.contentIds()
AssertionError

--
Ran 780 tests in 105.809s

FAILED (failures=1, errors=1)

-- 
Paul Winkler
http://www.slinkp.com



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Failing tests in CMF 1.4.8?

2005-10-04 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Paul Winkler wrote:

> Does anybody else get one failure and one error from the unit tests
> on a fresh install of CMF 1.4.8?
> Will there be a 1.4.9? If so, these prob'ly oughta be looked at...
> I searched the collector and didn't find anything related to these tests.
> I'm using Zope 2.7.7, Python 2.3.5 on linux.

I can confirm that those tests break when running against the head of
the 2.7 branch of zope, when using a checkout of CMF 1.4.8.  The head of
the CMF 1.4 branch does *not* show those failrues.

Sidnei has been backporting fixes to the 1.4 branch, and has some plans
to release a 1.4.9 eventually.


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDQymc+gerLs4ltQ4RAkMhAJ9bnzJeObBekcKsC34E50tXuHA9WwCfag7N
qhKW3RARRNnGrDVJkPisPmw=
=YwtY
-END PGP SIGNATURE-

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


Re: [Zope-CMF] Re: Failing tests in CMF 1.4.8?

2005-10-04 Thread Paul Winkler
Cool, thanks for the update.

-PW

Tres Seaver said:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Paul Winkler wrote:
>
>> Does anybody else get one failure and one error from the unit tests on
>> a fresh install of CMF 1.4.8?
>> Will there be a 1.4.9? If so, these prob'ly oughta be looked at... I
>> searched the collector and didn't find anything related to these
>> tests. I'm using Zope 2.7.7, Python 2.3.5 on linux.
>
> I can confirm that those tests break when running against the head of
> the 2.7 branch of zope, when using a checkout of CMF 1.4.8.  The head of
> the CMF 1.4 branch does *not* show those failrues.
>
> Sidnei has been backporting fixes to the 1.4 branch, and has some plans
> to release a 1.4.9 eventually.
>
>
> Tres.
> - --
> === Tres
> Seaver  +1 202-558-7113  [EMAIL PROTECTED] Palladion
> Software   "Excellence by Design"http://palladion.com -BEGIN PGP
> SIGNATURE-
> Version: GnuPG v1.2.5 (GNU/Linux)
> Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
>
> iD8DBQFDQymc+gerLs4ltQ4RAkMhAJ9bnzJeObBekcKsC34E50tXuHA9WwCfag7N
> qhKW3RARRNnGrDVJkPisPmw=
> =YwtY
> -END PGP SIGNATURE-
>
> ___
> Zope-CMF maillist  -  Zope-CMF@lists.zope.org
> http://mail.zope.org/mailman/listinfo/zope-cmf
>
> See http://collector.zope.org/CMF for bug reports and feature requests


-- 
Paul Winkler
http://www.slinkp.com



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Memberdata folder contents view with SVN CMFMember/Plone2.1

2005-10-04 Thread Jeff Kowalczyk
Is there currently a way to access the normal folder contents view of the
container with member profile objects?

Using Plone 2.1 SVN bundle, CMFMember trunk: currently, the URL:

http://localhost:8080/Plone/portal_memberdata/folder_contents

returns the GRUF-like user and groups overview page. The folder contents
view would be useful for batch state change, cut/paste, etc.

I do realize this template would become impractical for large user counts.
Thanks.

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Customizing actions in folder contents view (CMFMember trunk)

2005-10-04 Thread Jeff Kowalczyk
As a followup question to how to access the folder contents view in
CMFMember trunk/ Plone 2.1 SVN Bundle:

My user-administrators will need a few batch actions on a user base of
under 200 users. Typical batch operations might be be assigning a metadata
date field (effective or expiry date), and assigning a value to a field
added with the schema editor, or batch assigning a keyword, etc.

I was considering customizing the folder contents template at that
location to provide them as button actions. Or making a separate template
calling product code, if that would be easier or less intrusive to the UI.

Has anyone implemented this yet, and/or be willing to share any
suggestions on how to do it?

___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Customizing actions in folder contents view (CMFMember trunk)

2005-10-04 Thread Jeff Kowalczyk
Sorry, pls ignore posted to wrong list, will use cmfmember.


___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: Memberdata folder contents view with SVN CMFMember/Plone2.1

2005-10-04 Thread Jeff Kowalczyk
On Wed, 05 Oct 2005 00:32:13 -0400, Jeff Kowalczyk wrote:
> Is there currently a way to access the normal folder contents view of the
> container with member profile objects?

Sorry, pls ignore posted to wrong list, will use cmfmember.



___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests


[Zope-CMF] Re: CMFTestCase: Best way to create the CMF site?

2005-10-04 Thread Stefan H. Holek

I see two options:

a) Use a different portal name

portal_name = 'mysite'
CMFTestCase.setupCMFSite(portal_name)

b) Use getPortal() to create a new portal per test

def getPortal(self):
manage_addCMFSite(self.app, portal_name)
return getattr(self.app, portal_name)

Stefan


On 5. Okt 2005, at 01:08, Paul Winkler wrote:


At one time, I naively had it set up in getPortal() but that seems
to have worked only in one product and only by bizarre coincidence  
as it

failed in every other product test I tried it with.
(Random assortment of BadRequest and ReadConflictErrors, I was
never able to sort it all out.) So that seems unlikely to be the Right
Thing (tm).


--
Anything that happens, happens.  --Douglas Adams


___
Zope-CMF maillist  -  Zope-CMF@lists.zope.org
http://mail.zope.org/mailman/listinfo/zope-cmf

See http://collector.zope.org/CMF for bug reports and feature requests