[Zope] anyone skilled in the ways of changing page properties?

2000-07-28 Thread tav

::: on a standard page served by zope, user enters pagename into a field and
presses submit


form method=GET action=createwikipage
input type="text" name="pagename"
input type="submit" name="submit" value="Submit"
/form


::: createwikipage is a dtml method to which pagename is passed onto

::: a ZWiki page is now successfully created with the pagename specified by
the user as the id


dtml-call "manage_addZWikiPage(id=pagename, title='')"


::: thanks to Geoff Gardiner's managed mode additions, the ZWiki page has an
extra boolean property called managed_mode, which i would like to set to
true (1) : this is where, my troubles begin, and i have tried with the help
of those helpful souls in #zope on irc.openprojects.net, many many
combinations


dtml-with "_[pagename]"
dtml-call "manage_editProperties({'managed_mode':1, 'type':'int'})"
/dtml-with


the above proceeds with no problems, but doesnt change the managed_mode to 1


dtml-with "_[pagename]"
dtml-call "REQUEST.set('managed_mode', 1)"
dtml-call "manage_editProperties(REQUEST)"
/dtml-with


which again "works" but without any change like the first one, and after
digging through the mailing list archive, i tried:


dtml-call
"_[pagename].propertysheets.Basic.manage_changeProperties(manage_mode=1)"


which unfortunately leads to an attribute error with Error Value: 'string'
object has no attribute 'propertysheets'

i have tried god knows how many different combinations along similar lines,
but they either give me zope errors or even worse, "work" but without having
changed the value of the property.

i would appreciate it if anyone could point me to what i am doing wrong
here. i believe the main problem lies in "passing" the pagename to the dtml
method for it to change the properties of. other than that, i have no idea
what i am doing wrong, and i am close to tearing out my hair in frustration

::: now, if ever, i get that solved, i would also like to set the user who
submitted the pagename as the page_owner of the new page. again, page_owner
is a new ZWiki property due to Geoff's work =)

and for this, i presume, whatever dtml works with the above change for
managed mode, with the slight change of :


manage_changeProperties(page_owner=AUTHENTICATED_USER)
or
manage_changeProperties('page_owner', 'AUTHENTICATED_USER.getUserName()',
'string')



::: now, i would like to create a new property on the ZWiki page, called
page_creation_time, and set the the creation time/date as the value


manage_addProperty('page_creation_time',ZopeTime(),'date')



::: and finally, the user is redirected to the editform of the page (and i
am proud to say that this is working ;)


dtml-call "RESPONSE.redirect(_['URL1'] + '/' + REQUEST['pagename'] +
'/editform?cols=60rows=20')"


if anyone can help me with the setting of the managed_mode, i would be
delighted and they would earn a big spot on this site of mine g and, if
anyone can also provide code that works to set the page_owner and
page_creation_time, then i will do anything to make you happy. thanks in
advance for any help

--
best regards, tav


[slackware, running zope 2.2, served through Apache ProxyPass + Site Access,
with ZWiki 0.6.1 with Geoff Gardiner's mm3 and the CVS version of PTK from
two days ago]


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




Re: [Zope] anyone skilled in the ways of changing page properties?

2000-07-28 Thread tav

Chris Withers wrote:

 Try changing all your _[pagename] to _.getitem(pagename,0),
 especially when you're getting errors about strings not having
 attributes.

Chris, you are a star!

I made the whole of the site in two days, but wasnt able to work out this
particular problem for over another two days!. learnt a lot of dtml in an
attempt to do so, but still hadnt solved it :/

once again, thanks Chris for the lifesaver. Also, special thanks to AdamK,
who followed me up on IRC, and helped resolve it.

now, only one more thing needs resolving... g ... when i do the following:

manage_changeProperties(page_owner=AUTHENTICATED_USER)

i get the error

-
Error Type: ValueError
Error Value: Invalid property value: wrapped object
-

course, if i put ' ' around AUTHENTICATED_USER, it works but it then uses
that literally, which is not what is needed. any ideas as to how i can
insert the username into the property field?

much appreciated, and once again, thanks in advance.

--
best regards, tav


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




Re: [Zope] anyone skilled in the ways of changing page properties?

2000-07-28 Thread tav

 tav,

 try

 manage_changeProperties(page_owner=AUTHENTICATED_USER.getUserName())

Phil, cheers, that works =)

though, the strangest thing is that i had tried that and had gotten
attribute errors, which i thought was arising due to the lack of ' ' around
it... hmz, strange, but it works now... so. thanks

i hope that i do justice to the help that you have all given me; i just need
to do a bit more work, and then i can launch the site for everyone to see

--
best regards, tav


___
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] page properties (part II)

2000-08-01 Thread tav

apologies for the delay with the site, to anyone who was expecting it, i had
some "real life" issues to deal with :/ which, i have now managed to deal
with for the time being, and got back to dear zope. i worked away at it all
nite, and ended up with a handful of problems, which i am hoping someone
will be able to solve ;)

(1)  following up from last time

i thought it would be more functional if the user could define the pagename
and a pagetopic (section) and press enter, when the user does this, it sends
the info to a dtml document, which puts the page(pagename) into
managed_mode, and i would also like to now set the pagetopic as a new
property... page_topic

atm, the code looks like this...

--
dtml-with "_.getitem(pagename,0)"
dtml-call "manage_changeProperties(managed_mode=1)"
/dtml-with
--

but, i have no idea how i would get the second pagetopic passed along, and
set as a new property on whatever page, pagename is

(2) sorting by two values

i wa trying to sort through all the pages, and display the 10 most recently
changed ones which have page_status set to approved.

--
dtml-in "aq_parent.objectValues(spec='ZWiki Page')" size="10"
sort="bobobase_modification_time" reverse
dtml-if "page_status == 'approved'"
a href="dtml.url_quote-id;" class="alt"dtml-var id/ap
/dtml-if
/dtml-in
--

i came close with the above code, however, it sorts out the 10 most recent
pages first, and then 'filters' and displays the ones which have approved
status. whereas i want 10 approved pages :(

(3) search

how would i create a page that allowed people to search a host of pages by
specific properties, e.g. page_status or page_name?

- so, user selects property from a drop-down list and types in what he is
searching for into a text field, and presses search.

- perhaps even search by time? e.g. person says, only display pages created
in the last [person enters value here] days

- and of course, search by time when last edited. person enters start time,
and end time, and all pages last edited within that time frame are shown

- would it be possible for someone to search on two criteria? say page_name
and time last changed?

(4) these questions related to PTK (i am running the latest CVS version)

- the /Members/membername section seems to be fucked ): going there directly
tells me that the object cant be found. digging through the PTK-list, i
found out that /Members/membername/index_html/index_html works, but that is
one damned nuisance

it works nicely on zope.org, so i am hoping that there is a workaround for
it ;)

- i would like to also limit what users can upload to 100kb. any way of
doing this?

(5) imo, this is the hardest of what i want to do

in the root folder of the site, i have 3 "boxes" (box1, box2, box3 ;), these
are all dtml documents. each of those boxes have a corresponding, simple
dtml document: color1, color2, and color3

i also have a dtml document called featurepage, which looks like:

--
trtd bgcolor=dtml-var color1
  dtml-var box1
/td/tr
trtd bgcolor=dtml-var color2
  dtml-var box2
/td/tr
trtd bgcolor=dtml-var color3
  dtml-var box3
/td/tr
--

now, what i would like to do is, when user signs up (this uses PTK's default
system), featurepage is copied over to the user's directory
/Members/username

again, i notice that zope.org copies over a zwiki folder... so this must be
possible. also, if possible, i would like to customise the user's
index_html, which i dont seem to be able to do atm :/

anyways, once the featurepage is copied over, i would like to let the user
do two things

(1) tick which boxes they want to show

(2) define which order they want the boxes they have chosen to appear...

(3) define the different colors for the boxes that they have chosen

letting a person do all this through a webpage "seems" to be possible, just
dont know how :/

apologies in advance for such a long list of problems. i have spent many
sleepless nites trying to work them all out. managed to solve half the
problems, but the above are beyond me ):

thanks in advance for any help

--
best regards, tav


ps, with PTK, is there any way to copy a certain file/fodler into the
Members/username section of each member who has already registered? or does
this have to be done *shudder* manually?

pps, with the PTK, is there any way to change the user's roles, e.g. add
Reviewer role to Member, without altering the password? thanks


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




Re: [Zope] page properties (part II)

2000-08-01 Thread tav

apologies if i overwhelmed people with the issues i was having. i should
have probably dealt it out in smaller chunks. but, if anyone can help out
with even just 1 of the 5 problems below, then i would very much appreciate
it.

heartful of thanks in advance. ;)

--
best regards, tav



- Original Message -
From: "tav" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, August 01, 2000 11:10 AM
Subject: [Zope] page properties (part II)


 apologies for the delay with the site, to anyone who was expecting it, i
had
 some "real life" issues to deal with :/ which, i have now managed to deal
 with for the time being, and got back to dear zope. i worked away at it
all
 nite, and ended up with a handful of problems, which i am hoping someone
 will be able to solve ;)

 (1)  following up from last time

 i thought it would be more functional if the user could define the
pagename
 and a pagetopic (section) and press enter, when the user does this, it
sends
 the info to a dtml document, which puts the page(pagename) into
 managed_mode, and i would also like to now set the pagetopic as a new
 property... page_topic

 atm, the code looks like this...

 --
 dtml-with "_.getitem(pagename,0)"
 dtml-call "manage_changeProperties(managed_mode=1)"
 /dtml-with
 --

 but, i have no idea how i would get the second pagetopic passed along, and
 set as a new property on whatever page, pagename is

 (2) sorting by two values

 i wa trying to sort through all the pages, and display the 10 most
recently
 changed ones which have page_status set to approved.

 --
 dtml-in "aq_parent.objectValues(spec='ZWiki Page')" size="10"
 sort="bobobase_modification_time" reverse
 dtml-if "page_status == 'approved'"
 a href="dtml.url_quote-id;" class="alt"dtml-var id/ap
 /dtml-if
 /dtml-in
 --

 i came close with the above code, however, it sorts out the 10 most recent
 pages first, and then 'filters' and displays the ones which have approved
 status. whereas i want 10 approved pages :(

 (3) search

 how would i create a page that allowed people to search a host of pages by
 specific properties, e.g. page_status or page_name?

 - so, user selects property from a drop-down list and types in what he is
 searching for into a text field, and presses search.

 - perhaps even search by time? e.g. person says, only display pages
created
 in the last [person enters value here] days

 - and of course, search by time when last edited. person enters start
time,
 and end time, and all pages last edited within that time frame are shown

 - would it be possible for someone to search on two criteria? say
page_name
 and time last changed?

 (4) these questions related to PTK (i am running the latest CVS version)

 - the /Members/membername section seems to be fucked ): going there
directly
 tells me that the object cant be found. digging through the PTK-list, i
 found out that /Members/membername/index_html/index_html works, but that
is
 one damned nuisance

 it works nicely on zope.org, so i am hoping that there is a workaround for
 it ;)

 - i would like to also limit what users can upload to 100kb. any way of
 doing this?

 (5) imo, this is the hardest of what i want to do

 in the root folder of the site, i have 3 "boxes" (box1, box2, box3 ;),
these
 are all dtml documents. each of those boxes have a corresponding, simple
 dtml document: color1, color2, and color3

 i also have a dtml document called featurepage, which looks like:

 --
 trtd bgcolor=dtml-var color1
   dtml-var box1
 /td/tr
 trtd bgcolor=dtml-var color2
   dtml-var box2
 /td/tr
 trtd bgcolor=dtml-var color3
   dtml-var box3
 /td/tr
 --

 now, what i would like to do is, when user signs up (this uses PTK's
default
 system), featurepage is copied over to the user's directory
 /Members/username

 again, i notice that zope.org copies over a zwiki folder... so this must
be
 possible. also, if possible, i would like to customise the user's
 index_html, which i dont seem to be able to do atm :/

 anyways, once the featurepage is copied over, i would like to let the user
 do two things

 (1) tick which boxes they want to show

 (2) define which order they want the boxes they have chosen to appear...

 (3) define the different colors for the boxes that they have chosen

 letting a person do all this through a webpage "seems" to be possible,
just
 dont know how :/

 apologies in advance for such a long list of problems. i have spent many
 sleepless nites trying to work them all out. managed to solve half the
 problems, but the above are beyond me ):

 thanks in advance for any help

 --
 best regards, tav


 ps, with PTK, is there any way to copy a certain file/fodler into the
 Members/username section of each member who has already registered? or
does
 this have to be done *shudder* manually?

 pps, with the PT

[Zope] on ZCatalog

2000-08-14 Thread tav



since ZCatalog refuses to work with SiteRoot (SiteAccess), i 
have thought of implementing a temporary solution of making a dtml method 
which:

- deletes the SiteRoot object

- traverses the site for ZWiki pages to add to the 
ZCatalog

- adds the SiteRoot object back again

i am lost as to the dtml for getting ZCatalog to find and 
update all the ZWiki pages... :/

also, can someone advise me on how often i should call this 
method... so as to not cause too much strain on the machine

many thanks in advance

--
best regards, tav
http://plexnews.com


[Zope] wherefore art thou NotMail?

2000-08-27 Thread tav

i was going to make use of the Bank Holiday weekend by trying out some zope
products that i havent had time to play with... and NotMail was high on my
list.

i managed to install the IMAP server that it needed and went to get the
tarball, and it has gone missing from the zope.org site ;p

can someone please direct me to where i might find this elusive product.
thanks

--
best regards, tav


___
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] A DTML problem using Namespaces

2000-10-07 Thread tav

hi, i am running into a slight problem due to STILL not being able to
understand namespaces perfectly, and would appreciate if someone could help
out.

-
the situation is this:
-

i have a dtml document called "pageowners", on which i have a list property
called owners. which changes every hour. lets assume right now, it says tav
and Bill.

now, in the same folder, i have a dtml method called "parseit", and i have
three dtml documents, called "tav", "noa" and "Bill". there is a dtml
document corresponding to each owner.

each of the three documents have a title and content. parseit simply gives
them a table layout, which simplified immensely, looks like:

tabletrtd
dtml-var title
/tdtd
dtml-var owner-name
/td/tr/tablebr

what i want to do is display whomever is listed as an owner, in such nice
tables.

-
the problem is this:
-

in "standard_html_header", it looks up which owners are listed in
"pageowners", and then runs through them in a sequence. however, (and this
is where it gets tricky), i want the owners to be formatted by running them
thru "parseit".

however i get stuck when in parseit, as i dont know how to do dtml-var
Bill, i tried to set Bill in the namespace by using dtml-with
Billdtml-var parseit, and then tried to call dtml-var id within
"parseit" but that doesn't work :/

and, again, i want this to be done automatically, so i dont want to have to
manually list Bill, tav, noa, etc

i am pretty sure that DTML can handle this, and this is one of the reasons
why i like zope, because it lends itself to a structured system which is
easily maintainable, e.g. the owners could increase from 5 to a 1000, and
this would still work.

Any help would be much appreciated. Thanks in advance

--
best regards, tav


___
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] Creating Member folders with the Membership Product

2000-10-08 Thread tav

Hi, I have been trying to mimic the way the PTK (and zope.org) automatically
creates a Member folder with specific objects, when someone signs up.

I want to do something similar, but call it something other than Members/
and have 5 objects in a subfolder copied over to the User's directory that
is created.

Currently I am using the PTK, but am also interested in Bill's Membership
Product. So, if anyone could guide me as to how I can achieve this with
either, I would be very grateful.

--
best regards, tav
[EMAIL PROTECTED]


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




Re: [Zope] [Newbie] Can Zope ...

2001-01-09 Thread tav

 SR == "Smith Ray" [EMAIL PROTECTED] writes:

SR Are there any "Intranet" type packages which have
similar
SR functionality to what I have quickly described?

there aren't any intranet packages per se, but there is a
wonderful zope product called worldpilot which you should take
a look at. its available at
http://demo.worldpilot.com:8080/site/

it has a very nice web based mail client / calendar / todo /
address book features. that fulfils half of your requirements
in an intranet. for the other half, go out and create something
based on other zope tools, e.g. zwiki / squishdot / ptk

the drawback is in integrating worldpilot with whatever you
create. the code is definitely not the most manageable,
however, the source is there - so you can do whatever you want
:)

SR If I had to build something like this myself would
SR Zope be the tool of choice? (I'm assuming it would
SR be since I'm on a Zope list!)

zope is without doubt one of the best ways to do this. most
important for me is the ability to extend the product in a
rapid and easy manner

at esp (company i work for), we desperately looked around for
good intranet solutions and ended up making our own 'xnet'
product based on zope. it does pretty much anything you would
want from an intranet, and using zope was definitely the best
decision we made about it.

i would offer you this product, however, its been made
primarily for internal use, but with a few days work, i guess
it could be be made non-esp centric. pop onto irc
(irc.espnow.com / #esp) if you want to talk about it.

SR How long (rough estimate) would something like
SR this take to develop for a Zope newbie?

if you dedicate yourself to this, then about two months. zope
has a steep learning curve. but once you get to a certain
level, everything becomes much clearer... that is, until you
want to rise to the next level of zope meisters

--
best regards, tav
[EMAIL PROTECTED]


___
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-dev] problem, error messages, xnetpage product, always type error

2001-04-17 Thread tav

heyas

i created a zope product called, XnetPage, which is basically a folderish
dtml document/zwikipage

the source for the product can be seen at
http://mu2.espnow.com/~tav/XnetPage.py

it's been a bumpy ride, but everything's gone well so far.

however, i have run into a problem which is beyond me. it is with regards to
error messages.

whenever, the text of the xnetpage is rendered, and there's an error... lets
say that i call dtml-var hmz and hmz, hasn't been defined... instead of
displaying a NameError, or whatever the appropriate error should be, it
gives me a TypeError

i even installed ZDebug, but, it's of no help here :/

in fact, the error message is over-ridden by the one in HTTPResponse.py

i have included a sample error traceback below, and hope that someone can
enlighten me as to what's wrong.

most of the code in the product is from the zwiki product, and some of the
voodoo magic is beyond me ;p

thanks in advance


  File /home/zope/k1/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: test_page)
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 259, in
debug_render_blocks
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 228, in
debugException
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 155, in
debugWithNamespace
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 74, in
explodeNamespaceStack
  File /home/zope/k1/lib/python/ZPublisher/HTTPRequest.py, line 935, in
__str__
  File /home/zope/k1/lib/python/Products/XnetPage/XnetPage.py, line 811, in
__repr__
(Object: test_page
TypeError: call of non-function (type string)


--
best regards, tav
[EMAIL PROTECTED]


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



[Zope-dev] a plea for help (again)

2001-04-27 Thread tav

sorry for sending this to the list again, but i would _really_ appreciate
some help with the matter. thanks =)



heyas

i created a zope product called, XnetPage, which is basically a folderish
dtml document/zwikipage

the source for the product can be seen at
http://mu2.espnow.com/~tav/XnetPage.py

it's been a bumpy ride, but everything's gone well so far.

however, i have run into a problem which is beyond me. it is with regards to
error messages.

whenever, the text of the xnetpage is rendered, and there's an error... lets
say that i call dtml-var hmz and hmz, hasn't been defined... instead of
displaying a NameError, or whatever the appropriate error should be, it
gives me a TypeError

i even installed ZDebug, but, it's of no help here :/

in fact, the error message is over-ridden by the one in HTTPResponse.py

i have included a sample error traceback below, and hope that someone can
enlighten me as to what's wrong.

most of the code in the product is from the zwiki product, and some of the
voodoo magic is beyond me ;p

thanks in advance


  File /home/zope/k1/lib/python/DocumentTemplate/DT_String.py, line 538, in
__call__
(Object: test_page)
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 259, in
debug_render_blocks
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 228, in
debugException
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 155, in
debugWithNamespace
  File /home/zope/k1/lib/python/Products/ZDebug/DTMLDebug.py, line 74, in
explodeNamespaceStack
  File /home/zope/k1/lib/python/ZPublisher/HTTPRequest.py, line 935, in
__str__
  File /home/zope/k1/lib/python/Products/XnetPage/XnetPage.py, line 811, in
__repr__
(Object: test_page
TypeError: call of non-function (type string)


--
best regards, tav
[EMAIL PROTECTED]


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



Re: [Zope-dev] a plea for help (again)

2001-04-27 Thread tav

 CW == Chris Withers [EMAIL PROTECTED] wrote:

CW OK, the code around this is:

def __repr__(self):
return (%s %s at 0x%s
% (self.__class__.__name__, `self.id()`,
hex(id(self))[2:]))

CW I'm betting self.id isn't a methodm hence your error.
CW That said, I dont' really see the point of this whole
CW __repr__ method, maybe try removing it completely?

w00p! you rock!

thanks!

this is what happens when you copy paste someone else's code and don't know
wtf you are doing.

just commented it out, and works like a charm!

once again, loadsa thanks!

--
best regards, tav
[EMAIL PROTECTED]


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



[Zope-dev] xt_objects, and weird problems with properties

2001-06-07 Thread tav

i am encountering some rather bizarre problems with 'properties' on
xt_objects, which are effectively fancy folderish DTML Documents.

the problems are two fold...

- i call manage_changeProperties on an xt_object within other xt_objects,
and at times, it would change the same property, e.g. xt_options, on all the
other xt_objects in the same container!

this would be magically rectified when i restart the zope server!

- the second problem is of a different nature, it's to do with 'Date
properties'. i have several date properties set by dtml when an object is
created, e.g. xt_expiration_date. however, when i manually change a date
property through manage_propertiesForm, it suddenly stops being a date
property, e.g. if set through DTML, i can do dtml-var
xt_expiration_date.year() but, i get an attribute error on year, if i
change it manually...

the code for xt_objects can be found at
http://mu2.espnow.com/~zope/xt_object.py and any help would be appreciated.

--
best regards, tav
[EMAIL PROTECTED]


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