[Zope] Unable to resolve 'Uncatalog...' error with PTK

2000-08-20 Thread David Riggs

Having still more problems with this installation of Zope 2.1.6 and PTK
0.7.1...

I've got several (seems that the number is growing) objects that appear
in my ZCatalog,
and show up on my site, but refuse to let me edit, move or delete them.

Try to delete the object and get the following error:
---

Error Type: ValueError
Error Value: Uncatalog of absent id
'/portal/Members/demo4/D_Application'

Traceback (innermost last):
 File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 179, in
publish
  File C:\PROGRA~1\DEV_PO~1\lib\python\Zope\__init__.py,
line 202, in zpublisher_exception_hook
  (Object:
ElementWithAttributes)
File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 165, in
publish
 File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object:
manage_delObjects)
  File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 102, in
call_object
(Object:
manage_delObjects)
File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 401, in
manage_delObjects
  (Object:
ElementWithAttributes)
   File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 273, in
_delObject
  (Object:
ElementWithAttributes)
 File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 226,
in manage_beforeDelete
(Object:
D_Application)
   File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 213,
in unindex_object
(Object:
D_Application)
File
C:\PROGRA~1\DEV_PO~1\lib\python\Products\ZCatalog\ZCatalog.py, line 357,
in uncatalog_object
  (Object:
ElementWithAttributes)
 File
C:\PROGRA~1\DEV_PO~1\lib\python\Products\ZCatalog\Catalog.py, line 373,
in uncatalogObject
ValueError: (see above)
---

Updating the ZCatalog doesn't help, nor does clearing it out and
re-populating it.

I've searched through the mailing list archives and all the advice says
to delete the ZCatalog,
delete the trouble items, then undo the Catalog deletion. So I've tried
to delete the ZCatalog
'SiteIndex' and then tried to delete the object and get this different
error:
---

Error Type: AttributeError
Error Value: SiteIndex

Traceback (innermost last):
 File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 214, in
publish_module
File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 179, in
publish
  File C:\PROGRA~1\DEV_PO~1\lib\python\Zope\__init__.py,
line 202, in zpublisher_exception_hook
  (Object:
ElementWithAttributes)
File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 165, in
publish
 File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\mapply.py, line 160, in
mapply
(Object:
manage_delObjects)
  File
C:\PROGRA~1\DEV_PO~1\lib\python\ZPublisher\Publish.py, line 102, in
call_object
(Object:
manage_delObjects)
File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 401, in
manage_delObjects
  (Object:
ElementWithAttributes)
   File
C:\PROGRA~1\DEV_PO~1\lib\python\OFS\ObjectManager.py, line 273, in
_delObject
  (Object:
ElementWithAttributes)
 File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 226,
in manage_beforeDelete
(Object:
D_Application)
   File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalContent.py, line 213,
in unindex_object
(Object:
D_Application)
  File C:\Program
Files\dev_portal\lib\python\Products\PTKBase\PortalObject.py, line 318,
in getCatalog
 (Object:
DemoPortalBase)
  

[Zope] Can't change user roles without password

2000-08-16 Thread David Riggs

Somewhere along the way, the acl_users/Contents form has decided to quit

filling in the value of each user's password, so that their roles can
only be
assigned if a Manager knows their password...I've got new installation
running
Zope 2.2.0 and a new CVS PTK release on another box that does it
correctly, but
I can't determine what's the differentiating factor by comparing them.

Any ideas on what I did to cause this, or more importantly, what I can
do to
fix it?

I'm using...
Zope 2.1.6 (binary release, python 1.5.2, win32-x86)
PTK 0.7.1
WinNT 4.0 SP5

Thanks,
Dave.


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] PTK Member-Folder Object Properties (phew!)

2000-08-07 Thread David Riggs

For each member in the Portal ToolKit, a folder is created in the folder
'Members', i.e:
ZopeRoot/Portal/Members/member_name

I've created a ZClass called Customize that has several properties, and
I've added an instance of Customize (and called each instance Customize)
in each member's folder. i.e.:
/Portal/Members/member_name/Customize

What I need is a way to access the value of these properties for any
given member that is logged in at the moment. In other words, I can do
this...
dtml-var "_.getattr(Members.member1.Customize, 'some_property')"

and get the value that I need for member1. I want the equivalent of
replacing 'member1' with AUTHENTICATED_USER.getName()...I tried
substuting it in and building a string with it, but that causes  getattr
to complain about strings not having the needed property.

Any ideas on how to make this work, or ideas on how to do it a similar
(or even completely different) way?




___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] Problem accessing property value

2000-08-03 Thread David Riggs

This is a problem I'm running into using Zope 2.1.6 and PTK 0.7.1 on an
NT machine...I plan on upgrading both as soon as the 2.2.1 bug fix is
released...I believe the problem is just a syntax one...

I'm running into a snag trying to access the value of a property I've
assigned to an instance of a ZClass...specifically, I've created a
ZClass of meta-type Customize, and created an instance (also called
Customize for simplicity) in each member's home folder. [for reference
sake, PTK creates a folder in the path
/ZopeRoot/PortalRoot/Members/UserName for each member] The instance has
a long list of properties that I'd like to access and use as
customization settings for each individual user.

Calling the property like this...
  dtml-var
"AUTHENTICATED_USER.getHomeUrl()+'/Customize.some_property'"
Yields the following string literal (which isn't what I need)
http://host:8080/Portal/Members/UserName/Customize.some_property

And calling it like so...
 dtml-var
"_(AUTHENTICATED_USER.getHomeUrl()+'/Customize.some_property')"
Gives me this weird string (definitely not what I want)
  DictInstance object at 134fdc0
Where the hex number varies between 11x - 13x each time I render

it.

I've tried calling the Customize method like this
 dtml-var "Members.UserName.Customize.some_property"
And I get the value I need, but this way I'm hard coding the user's name

into the path, where I want it to not be user specific.

I've tried a few times with getAttribute and getProperty, but can't seem

to get the syntax correct...If any Zope Masters could offer a hand, it'd

be GREATLY appreciated!

Thanks,
David Riggs





___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )