[Zope-CMF] Re: Bad interaction between CMF 1.4 and Zope 2.8 (catalog-getObject-raises)

2005-06-03 Thread Raphael Ritz

Chris Withers wrote:
[..]

That said, I'm also aware that there are currently 4 of us talking about
this, 2 on each side. What does the rest of the community think?



Since you ask so explicitly ;-)

I agree with Florent: Your site's _USERES_ should never get
an error thrown at. There are other ways to inform the site's
admin.

Raphael


cheers,

Chris




___
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: DCWorkflow question...

2005-06-03 Thread Raphael Ritz

Dmitry S. Makovey wrote:
I've got workflow which runs script upon transition. At some point In 
that script I'm trying to get info on what state I'm in via:

st=getattr(state_change,'new_state')
and it appears to be working only with 'Manager' role which mean that 
I have to give that script "proxy role" of manager which I was trying 
to avoid. Is there any other way, and why new_state, old_state and 
transition attributes are so strictly guarded?


More a workaround than a solution but I usually turn such
scripts into external methods as soon as I encounter such
problems. Being trusted code then you can forget about
those issues.

Raphael







___
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 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] CMF Collector: Open Issues

2005-06-03 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 doesn't correctly detect DCWorkflow on export",
  [Accepted] http://www.zope.org/Collectors/CMF/298


  gregweb

- "CMFUid.UniqueIdGeneratorTool's counter may return double unique ids",
  [Accepted] http://www.zope.org/Collectors/CMF/306


  jens

- "Confusing date criteria in CMFTopic",
  [Accepted] http://www.zope.org/Collectors/CMF/339

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


  mj

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


Pending / Deferred Issues

- "DCWorkflow: cannot define variable 'meta_type'",
  [Pending] http://www.zope.org/Collectors/CMF/45

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

- "acl_users/roster",
  [Pending] http://www.zope.org/Collectors/CMF/63

- "Where did index_html_utils.html come from?",
  [Pending] http://www.zope.org/Collectors/CMF/93

- "iso-8859-2 in CMF ?",
  [Pending] http://www.zope.org/Collectors/CMF/160

- "Debuggable scripts",
  [Pending] http://www.zope.org/Collectors/CMF/194

- "formatRFC822Headers weakness?",
  [Pending] http://www.zope.org/Collectors/CMF/230

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

- "CMFCalendar: Events ending on midnight",
  [Pending] http://www.zope.org/Collectors/CMF/246

- "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

- "Unable to copy/import site due to talkbalk attribute assumptions",
  [Pending] http://www.zope.org/Collectors/CMF/282

- "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

- "ToolInit icon error",
  [Pending] http://www.zope.org/Collectors/CMF/305

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

- "FSFile and FSImage don't update caching headers for 304 responsens",
  [Pending] http://www.zope.org/Collectors/CMF/333

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

- "MembershipTool inconsistency",
  [Pending] http://www.zope.org/Collectors/CMF/354


Pending / Deferred Features

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

- "TTW configuration of registration tool",
  [Pending] http://www.zope.org/Collectors/CMF/32

- "Provide delete reply function to standard skins that come with CMF",
  [Pending] http://www.zope.org/Collectors/CMF/38

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

- "Topic should be catalogued",
  [Pending] http://www.zope.org/Collectors/CMF/53

- "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

- "having a locale.pot file should ease the process of translating CMF",
  [Pending] http://www.zope.org/Collectors/CMF/155

- "french translation for CMF 1.4",
  [Pending] http://www.zope.org/Collectors/CMF/157

- "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

- "FSZSQLMethod.py",
  [Pending] http://www.zope.org/Collectors/CMF/273

- "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

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

- "Allow contentFilter to use review_state",
  [Pending] http://www

Re: [Zope-CMF] Re: Bad interaction between CMF 1.4 and Zope 2.8 (catalog-getObject-raises)

2005-06-03 Thread Chris Withers

Raphael Ritz wrote:

Since you ask so explicitly ;-)

I agree with Florent: Your site's _USERES_ should never get
an error thrown at.


Even if they're potentially destroying their own data as a result?!

Chris

--
Simplistix - Content Management, Zope & Python Consulting
   - http://www.simplistix.co.uk
___
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: Bad interaction between CMF 1.4 and Zope 2.8 (catalog-getObject-raises)

2005-06-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Chris Withers wrote:
> Raphael Ritz wrote:
> 
>> Since you ask so explicitly ;-)
>>
>> I agree with Florent: Your site's _USERES_ should never get
>> an error thrown at.
> 
> 
> Even if they're potentially destroying their own data as a result?!

Chris, you can't seem to get the point the fact that the damage, if any,
is *already done*, in some previous request.  The log messages we are
talking about here are a result of the code *noting* the already-created
inconsistency.

The proof of the pudding here is that this issue does *not* result in
"data loss" for users:  the symptom can be resolved by reindexing the
entire catalog, for instance (the inconsistent data is secondary, not
primary).


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

iD8DBQFCoHL5+gerLs4ltQ4RAjWvAKC5+SOU4DRUoX/ollOE6yC++TelFQCgw4iS
a4xpiqoo7utrb1JCrqpfTLk=
=29f6
-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


[Zope-CMF] CMFHotfixes in the repository

2005-06-03 Thread Florent Guillaume
Have the CMFHotfix_* products been recently moved into the CMF  
repository? I don't remember them.

Trying to run tests from a checkout of the HEAD, I get:

...
  File ".../zope27head-cmfhead/Products/CMFHotfix_20031026/ 
__init__.py", line 10, in ?
from Products.CMFCore.CMFCorePermissions import View,  
ListPortalMembers

ImportError: No module named CMFCorePermissions

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


___
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: CMFHotfixes in the repository

2005-06-03 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Florent Guillaume wrote:
> Have the CMFHotfix_* products been recently moved into the CMF 
> repository?

Nope, they have been there all along.  As with some of the other
productgs (CMFStaging, CMFWorkspaces, at least), they are unde '/CMF'
for "hysterical raisins", and could probably be moved into another location.

> I don't remember them.
> Trying to run tests from a checkout of the HEAD, I get:
> 
> ...
>   File ".../zope27head-cmfhead/Products/CMFHotfix_20031026/
> __init__.py", line 10, in ?
> from Products.CMFCore.CMFCorePermissions import View, 
> ListPortalMembers
> ImportError: No module named CMFCorePermissions
> 

Right.  It doesn't make much sense to backport naming changes to a
hotfix product whose actual fix has been superseded by the version
causing the import problem. ;)


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

iD8DBQFCoJUi+gerLs4ltQ4RAk9bAJ9A22KVnU7Q0LGE1em4A/E32Q2AiQCfZYQW
o+M/uzExiJOQFSe7+O+MhgM=
=fs9Z
-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


[Zope-CMF] Zope 2.7.6 acl_user issues - no transaction history

2005-06-03 Thread Carl Rendell
Been searching the lists and have not been able to find anything  
specific on the subject.


Context -

In a multi CMF / Plone zope instance local acl_users are not getting  
any transaction history from which to undo (undo_form returns no  
results).


So long as the user is in the acl_user folder at the parent level  
(main zope instance) they do have transaction history that shows in  
undo.


I'm not sure if this is related to the changes in ZopeUndo/Prefix.py  
or others changes in zope 2.7.6, but I'm hoping someone may have run  
across this issue.


head to head comparisons of 2.7.5 to 2.7.6 indicate the change is  
localized to the difference between the to.


Anyone have insight into this one?

Thanks,

~C

Carl Rendell
[EMAIL PROTECTED]

___
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: [Plone-users] DCWorkflow question...

2005-06-03 Thread Dieter Maurer
Dmitry S. Makovey wrote at 2005-6-2 10:27 -0600:
>I've got workflow which runs script upon transition. At some point In 
>that script I'm trying to get info on what state I'm in via:
>st=getattr(state_change,'new_state')
>and it appears to be working only with 'Manager' role which mean that 
>I have to give that script "proxy role" of manager which I was trying 
>to avoid.

A different solution would be to use a small set of specialized
scripts with "Manager" role that extract the relevant information.

>Is there any other way, and why new_state, old_state and 
>transition attributes are so strictly guarded?

The reason is the

security.declareObjectProtected(ManagePortal)

for "StateDefinition"s and "TransitionDefinition"s.

I doubt the protection is necessary. But, it is there...

-- 
Dieter
___
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: Bad interaction between CMF 1.4 and Zope 2.8 (catalog-getObject-raises)

2005-06-03 Thread Dieter Maurer
Raphael Ritz wrote at 2005-6-3 09:40 +0200:
>Chris Withers wrote:
>[..]
>> That said, I'm also aware that there are currently 4 of us talking about
>> this, 2 on each side. What does the rest of the community think?
>> 
>
>Since you ask so explicitly ;-)
>
>I agree with Florent: Your site's _USERES_ should never get
>an error thrown at. There are other ways to inform the site's
>admin.

But "admin"s are lazy people (I am one, part time; therefore, I know...)
*unless* their users report problems.

I know that lots of admins saw lots of inconsistency reports
in Zope's logfile -- and did nothing!
Only newbies asked from time to time what these log entries
mean -- and got the advice to ignore them...
I speak about the "could not remove XXX from index III"
that plagued Zope's "KeywordIndex" for years.

-- 
Dieter
___
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