[Zope-dev] manage_pasteObjects and REQUEST

2001-09-18 Thread Danny William Adair

Hi!

Does anyone know when manage_PasteObjects will stop requiring REQUEST to be passed? I 
want to mimick the Cut/Copy/Paste Support of the management interface in a UI of my 
own.

my method "objectsCut" holds:


while my "objectsPaste" method holds:


Pasting objects will sometimes (!?!) redirect me to the management interface, which I 
want to hide.
I found these last lines in manage_pasteObjects (CopySupport.py):

def manage_pasteObjects(self, cb_copy_data=None, REQUEST=None):
"""Paste previously copied objects into the current object.
   If calling manage_pasteObjects from python code, pass
   the result of a previous call to manage_cutObjects or
   manage_copyObjects as the first argument."""
...
...
...
if REQUEST is not None:
REQUEST['RESPONSE'].setCookie('__cp', 'deleted',
path='%s' % cookie_path(REQUEST),
expires='Wed, 31-Dec-97 23:59:59 GMT')
REQUEST['__cp'] = None
return self.manage_main(self, REQUEST, update_menu=1,
cb_dataValid=0)

I don't want to hack this file.
The only way to get the cookie set seems to be passing the REQUEST object.

"...pass the result of a previous call to manage_cutObjects or manage_copyObjects as 
the first argument"

This doesn't help me very much. It would help me if I wanted to Copy/Paste or 
Cut/Paste at the same time:




works fine, but if I want to do Copy and Paste at completely different times, I have 
to pass my_clipboard_data along the requests all the time.

Is there a simple solution? Is it something I should put in the Bug Collector? Or did 
I miss something?

Thank you very much for your help,

Danny

___
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] You'll profit if you read this, It's hot!

2001-09-18 Thread calichx
Lowest Rates on the Internet.



Process Credit Cards From Any Country In Real-Time, and Receive the Funds Generated By Your Sales in 24 hours from Any Where!!!



 Click Here 
for more information or to apply.



 Click Here 
to remove yourself from our list.


___
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] Operation Properties.

2001-09-18 Thread Dieter Maurer

Erik Enge writes:
 > 
 > This raises a number of interesting issues; I'll try to be brief.
 > 
 >   - I'd like the currency-attribute itself to know about how how
 > display itself (ie. this shouldn't be a method of the class
 > containing the property).
 > 
 >   - I'd like the currency-attribute itself to know how to convert
 > itself to other currencies.
 > 
 > This would allow me to say::
 > 
 >transaction.currency.set_amount_to(100.00)
 >transaction.currency.set_currency('FRF') # French Francs
 > 
 > And then this::
 > 
 >transaction.currency.display_in('NOK') # Norwegian kroners
 > 
 > would render the string::
Have a look at "Date" properties.
They are already objects.

However, they are immutable. This is quite essential!
Your properties must be either immutable or persistent.
Otherwise, you risk that modifications to the properties
done without Container involvement are lost when the
object is flushed from the cache.


Dieter

___
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] Domain and Password blank

2001-09-18 Thread Dieter Maurer

Juan Javier Carrera Obrero writes:
 > I have created a user with the password blank, specifying a domain and a
 > role called "guess" that I had created previously from the "security" of the
 > root folder.
 > 
 > Then, I have created a LocalFS, and I have assigned it the "Access content
 > information" and "View" to the "guess" role (the anonymous user do not have
 > permissions), because I want all the users from that domain can access to
 > the LocalFS without having to log in.
 > 
 > However, when I access from the browser, Zope shows the window for "Log In".
 > When I type the username (without password), then I can access to the
 > LocalFS. But I want to access directly without to type the username (by
 > teory it should be thus, because I have specified the domain, the role and
 > the password blank)
This has been disabled by default.

There is a way to reenable it (--> mailing list archives, message from
ChrisM).


Dieter

___
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] ZCatalog bug

2001-09-18 Thread Steve Alexander

I'm updating a site that is currently using Python 1.5.2 and Zope 
2.3.something to use Python 2.1 and Zope 2.4.from_cvs.

I've had a problem: most products won't initialize. They fail on an 
AttributeError in SearchIndex/UnTextIndex.py related to setting up the 
help system.

This ugly patch fixes it. There must be a better way!



*** /lib/python/SearchIndex/UnTextIndex.py.original
--- /lib/python/SearchIndex/UnTextIndex.py.new
***
*** 327,333 
   return 0

   lexicon = self.getLexicon(self._lexicon)
! splitter=lexicon.Splitter

   wordScores = OIBTree()
   last = None
--- 327,337 
   return 0

   lexicon = self.getLexicon(self._lexicon)
!
! try:
! splitter=lexicon.Splitter
! except AttributeError:
! splitter=lexicon.lexicon.Splitter

   wordScores = OIBTree()
   last = None
***
*** 343,349 

   # Convert scores to use wids:
   widScores=IIBucket()
! getWid=lexicon.getWordId
   for word, score in wordScores.items():
   widScores[getWid(word)]=score

--- 347,356 

   # Convert scores to use wids:
   widScores=IIBucket()
! try:
! getWid=lexicon.getWordId
! except AttributeError:
! getWid=lexicon.lexicon.getWordId
   for word, score in wordScores.items():
   widScores[getWid(word)]=score

--
Steve Alexander
Software Engineer
Cat-Box limited


___
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] Domain and Password blank

2001-09-18 Thread Juan Javier Carrera Obrero

Hello,

I have created a user with the password blank, specifying a domain and a
role called "guess" that I had created previously from the "security" of the
root folder.

Then, I have created a LocalFS, and I have assigned it the "Access content
information" and "View" to the "guess" role (the anonymous user do not have
permissions), because I want all the users from that domain can access to
the LocalFS without having to log in.

However, when I access from the browser, Zope shows the window for "Log In".
When I type the username (without password), then I can access to the
LocalFS. But I want to access directly without to type the username (by
teory it should be thus, because I have specified the domain, the role and
the password blank)

Anybody knows to what happen?

Thanks.



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



Fwd: Re: [Zope-dev] WebDav Bug?

2001-09-18 Thread Eric Brun




Hi, I'm working on webdav too.

Question :
When I access to my folder by webdav protocol (win98 webfolder), I can list
the folder content, but when I want to access to a file inside, Zope asked to
me another authentification, then I can access to my file (wordd file (.doc))
but only in read only mode.

When I see the Z2.log, I see that anonymous user lock my file when I try to
access it .
Why ?

Anybody for my question ?

Thanks

Eric

Le Lundi 17 Septembre 2001 23:40, vous avez ?rit :
> This should be fixed in Zope 2.4.X
>
> Andreas
> - Original Message -
> From: "Phil Harris" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, September 17, 2001 12:05
> Subject: [Zope-dev] WebDav Bug?
>
> > All,
> >
> > I'm in the process of creating a Python based equivalent for Cadaver.
> >
> > I think there is a minor but very annoying bug in the Zope WebDav server.
> >
> > I don't think the contents of the properties are being quoted.
> >
> > For instance:
> >
> > One object in my ZODB has a title of 'Declare interfaces for MIMEtype <->
> > Type object registry objects.'
> >
> > The '<->' is what causes the problem when parsed by xml.dom.minidom.
> >
> > Any ideas whether I'm right, and if so what can be done.
> >
> > Phil
> > [EMAIL PROTECTED]
> >
> > +1 family member.
> >
> > The nuclear family is now ready.
> >
> >
> > ___
> > 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 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 )

--
Eric Brun
Mission TIC
Savoie Technolac
France
E-mail : [EMAIL PROTECTED]

---

-- 
Eric Brun
Mission TIC
Savoie Technolac
France
E-mail : [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 )