[Zope] Pluggable Auth Service ... how is it used?

2005-07-06 Thread Richard Jones
I'd like to get session-based login going, and on the surface PAS appears to 
support that.

First up, is there any documentation?

I've set up in my PAS "acl_users" the following objects:

1. "cookies" - a Cookie Auth Helper active for Challenge
2. "session" - a Session Auth Helper active for  Extraction, Update
Credentials and Reset Credentials
3. "users"   - a ZODB User Manager with a single user "test"
4. "roles"   - a ZODB Role Manager with the "test" user assigned to "Manager"

Then accessing a "Manager" protected method inside the folder brings up the 
login form from the Cookie Auth Helper, but submitting that form does nothing 
(it returns the empty form to me).

Switching the "cookies" object to handle Extraction, Update Credentials and 
Reset Credentials makes the login work, but I'd like to use the session.

The docs that come with the product talk about Decorators and Property Sheets 
used to extend the user properties, but I can't even find anything with 
either of those names in the UI.

The interface has "Scriptable Plugin" with a teasingly disabled "Validation" 
interface -- which I have found to mean user validation. I'd like to enforce 
valid email address capture ... when I can figure how to actually capture an 
email address, that is.


Richard


pgpLHwu0A4IJ4.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] paypal IPN. Debug messages missing. Script goes zombie

2005-07-06 Thread Peter Bengtsson
Surely you get an error on the urlopen() bit because it's an HTTPS protocol. 
Search the ASPN python cookbook or the google for "https python"

Next time, try to include your traceback in the email to the list.

On 7/6/05, Ed Colmar <[EMAIL PROTECTED]> wrote:
> Hi all!
> 
> I've been hacking together a few seperate paypal IPN connections, some
> code from basion, and some from random web scrapings...  Anyway...
> Things are working for the most part, except that this method for some
> reason dies when using urllib.urlopen(), and what is really wierd is
> that I get no error message, it just hangs.
> 
> I am running an older version of zope, but I have never seen this
> behaviour before.  The debug (-D) flag is set in start.
> 
> here is the code I am using...  As far as I can tell my syntax is
> proper...  ???
> 
> def
> paypal_notify(self,address_street='',address_zip='',first_name='',last_name='',payer_business_name='',payer_email='',
> 
> payer_id='',payer_status='',residence_country='',quantity='',receiver_email='',receiver_id='',custom='',invoice='',
> memo='',auth_id='',auth_exp='',auth_amount='',auth_status='',
> remaining_settle='',
> mc_gross_x='',mc_handling_x='',mc_shipping_x='',
> 
> num_cart_items='',parent_txn_id='',payment_date='',payment_status='',payment_type='',
> 
> pending_reason='',reason_code='',txn_id='',txn_type='',exchange_rate='',mc_currency='',mc_fee='',
> mc_gross='',
> mc_handling='',payment_gross='',settle_amount='',settle_currency='',
> 
> auction_buyer_id='',auction_closing_date='',auction_multi_item='',for_auction='',
> 
> option_name1='',option_name2='',option_selection1='',option_selection2='',tax='',
> 
> subscr_date='',subscr_effective='',period1='',period2='',period3='',amount1='',
> 
> amount2='',amount3='',mc_amount1='',mc_amount2='',mc_amount3='',recurring='',
> reattempt='',retry_at='',
> recur_times='',username='',password='',subscr_id='',test_ipn=0,REQUEST=None):
> """ take a IPN from paypal, and update the database """
> print "Initiating paypal IPN"
> # they want us to send back their same shite (and we've just nicely
> # deblocked it from the REQUEST...)
> print "DEBUG = STARTING"
> requestform = REQUEST.form
> print requestform['quantity'] # debug test
> requestform['cmd'] = '_notify-validate'
> print "DEBUG = INSERTED NEW VALUE"
> print requestform
> print "sending request back to paypal"
> requestparams = urllib.urlencode(requestform)
> print "DEBUG = Encoded Request"
> print requestparams
> data =
> urllib.urlopen('https://www.sandbox.paypal.com/cgi-bin/webscr',
> requestform)
> print "DEBUG = urlretrieved"
> print data.read()
> print "DEBUG = DATA READ"
> 
> --
> 
> I see all my debug print commands until "encoded Request" and
> requestparams, so it is getting lost on the urlopen call.
> 
> Thanks for any help or tips.  I'll post the final IPN method when I'm done.
> 
> Cheers!
> 
> -ed
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Zope won't give up WebDAV Lock

2005-07-06 Thread Dieter Maurer
[EMAIL PROTECTED] wrote at 2005-7-6 07:50 -0600:
> ...
>The lock is not listed in Control Panel > WebDAV Lock Manager, 
>therefore cannot be released there.

That looks like the bug you need to analyse.

There was not yet a need for me to try to understand how
WebDAV locking works. As you have the problem now, you
may need to drill down and understand it.

-- 
Dieter
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] paypal IPN. Debug messages missing. Script goes zombie

2005-07-06 Thread Ed Colmar

Hi all!

I've been hacking together a few seperate paypal IPN connections, some 
code from basion, and some from random web scrapings...  Anyway...  
Things are working for the most part, except that this method for some 
reason dies when using urllib.urlopen(), and what is really wierd is 
that I get no error message, it just hangs.


I am running an older version of zope, but I have never seen this 
behaviour before.  The debug (-D) flag is set in start.


here is the code I am using...  As far as I can tell my syntax is 
proper...  ???


   def 
paypal_notify(self,address_street='',address_zip='',first_name='',last_name='',payer_business_name='',payer_email='',
   
payer_id='',payer_status='',residence_country='',quantity='',receiver_email='',receiver_id='',custom='',invoice='',

   memo='',auth_id='',auth_exp='',auth_amount='',auth_status='',
   remaining_settle='',
   mc_gross_x='',mc_handling_x='',mc_shipping_x='',
   
num_cart_items='',parent_txn_id='',payment_date='',payment_status='',payment_type='',
   
pending_reason='',reason_code='',txn_id='',txn_type='',exchange_rate='',mc_currency='',mc_fee='',
   mc_gross='', 
mc_handling='',payment_gross='',settle_amount='',settle_currency='',
   
auction_buyer_id='',auction_closing_date='',auction_multi_item='',for_auction='',
   
option_name1='',option_name2='',option_selection1='',option_selection2='',tax='',
   
subscr_date='',subscr_effective='',period1='',period2='',period3='',amount1='',
   
amount2='',amount3='',mc_amount1='',mc_amount2='',mc_amount3='',recurring='',
   reattempt='',retry_at='', 
recur_times='',username='',password='',subscr_id='',test_ipn=0,REQUEST=None):

   """ take a IPN from paypal, and update the database """
   print "Initiating paypal IPN"
   # they want us to send back their same shite (and we've just nicely
   # deblocked it from the REQUEST...)
   print "DEBUG = STARTING"
   requestform = REQUEST.form
   print requestform['quantity'] # debug test
   requestform['cmd'] = '_notify-validate'
   print "DEBUG = INSERTED NEW VALUE"
   print requestform
   print "sending request back to paypal"
   requestparams = urllib.urlencode(requestform)
   print "DEBUG = Encoded Request"
   print requestparams
   data = 
urllib.urlopen('https://www.sandbox.paypal.com/cgi-bin/webscr',  
requestform)

   print "DEBUG = urlretrieved"
   print data.read()
   print "DEBUG = DATA READ"

--

I see all my debug print commands until "encoded Request" and 
requestparams, so it is getting lost on the urlopen call.


Thanks for any help or tips.  I'll post the final IPN method when I'm done.

Cheers!

-ed
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Why don't work?

2005-07-06 Thread bruno modulix
Garito wrote:
> bruno modulix escribió:
> 
>> Garito wrote:
>>
>>> Lennart Regebro escribió:
>>>
 A wild guess: Your post works, but returns a redirect to a nother
 page, which returns nothing. This will look exactly like notyhing
 happened at the browser side.
>>>
>>> Yes, looking at Z2.log it seems it but If I execute the action url
>>> manually it works like I expect
>>>
>>> Any idea?
>>
>> Since we're not able to guess what your code is doing (well, I, at
>> least, am not able to...), you could perhaps post it ?
>>
>> One thing that strikes me is the final slash in
>> "POST /Papeles/Yanged/Links/Eliminar/"
>>
>> What is "Eliminar", exactly ?
>>
> Links/Eliminar is the execution path 


Oh yes ? Really ? I sure wouldn't have guessed


> (using traverse_subpath)
> 
> But if I execute the action URL directly on the browser it works fine
> 

Garito, if you expect anyone here to be of any help, please provide
*useful* informations. When I ask ">> What is "Eliminar", exactly ?", I
of course mean "what kind of object is it" (ie: a dtml method, a python
script, etc...).

PS: You may want to read this:
http://www.catb.org/~esr/faqs/smart-questions.html

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


[Zope] Zope won't give up WebDAV Lock

2005-07-06 Thread hpinson
I have a regularly occuring WebDAV problem:

A file edited via ExternalEditor gets a WebDAV lock.  Upon closing 
(Textpad in this case) occasionally the lock is not released.

The lock is not listed in Control Panel > WebDAV Lock Manager, 
therefore cannot be released there.

Restarting Zope does not release the lock.

This is getting to be a terrible problem.  Once a lock is in place, 
the file cannot be changed, renamed, or deleted at all subsequently.

Zope is 2.7.6 Final, Fedora Core 3, Python 2.3.3

Here is the only reference that I have been able to find in the log:

2005-07-06T10:22:00 ERROR(200) SiteError http://.../PUT
Traceback (most recent call last):
  File "/var/zope276/lib/python/ZPublisher/Publish.py", line 101, in 
publish
request, bind=1)
  File "/var/zope276/lib/python/ZPublisher/mapply.py", line 88, in 
mapply
if debug is not None: return debug(object,args,context)
  File "/var/zope276/lib/python/ZPublisher/Publish.py", line 39, in 
call_object
result=apply(object,args) # Type s to step into published 
object.
  File 
"/var/zope276/lib/python/Products/PageTemplates/ZopePageTemplate.py", 
line 239, in PUT
self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)
  File "/var/zope276/lib/python/webdav/Resource.py", line 106, in 
dav__simpleifhandler
raise Locked, "Resource is locked."
Locked: Resource is locked.


Harlow Pinson
Indepth Learning
Email: [EMAIL PROTECTED] 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678

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


RE: [Zope] About Zope 2.7.7

2005-07-06 Thread Pascal Peregrina
Ok, thanks a lot !

Pascal

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
Andreas Jung
Sent: 05 July 2005 15:37
To: Pascal Peregrina; 'zope@zope.org'
Subject: Re: [Zope] About Zope 2.7.7


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


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**

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


Re: [Zope] bug?

2005-07-06 Thread Andreas Jung



--On 6. Juli 2005 12:44:00 +0200 Jürgen Herrmann 
<[EMAIL PROTECTED]> wrote:



hi there!

either this is a bug or i'm too stoned to see, what's going on...

i have a folder /1, 2 subfolders /1/11 and /1/22. each subfolder
has a property 'bool', which is a boolean.
there's a zcatalog instance in /1/Catalog with one index bool, indexed
attribute 'bool'. i cataloged the two subfolders of /1 there.

i have i skript /1/test with the following content:
results = context.Catalog.searchResults({'bool':1})


try searchResults(bool={'query' : 1})

-aj




pgpiaCnSJL29H.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] bug?

2005-07-06 Thread Jürgen Herrmann
i was dumb :)

the metadata table simply didn't have getId, so the brains object
acquires getId from the catalog.

sorry for my nubness ;P

regards, juergen herrmann

[ Peter Bengtsson wrote:]
> Easy. The brain object doesn't have a 'getId()' method. The Catalog has.
> What you're probably after is something like this::
>
>  for brain in context.Catalog.searchResults({'bool':1}):
>   cataloged_object = brain.getObject()
>   if cataloged_object is None:
>   print "ZCatalog out of sync!!"
>   else:
>   print cataloged_object.getId()
>
> On 7/6/05, Jürgen Herrmann <[EMAIL PROTECTED]> wrote:
>> hi there!
>>
>> either this is a bug or i'm too stoned to see, what's going on...
>>
>> i have a folder /1, 2 subfolders /1/11 and /1/22. each subfolder
>> has a property 'bool', which is a boolean.
>> there's a zcatalog instance in /1/Catalog with one index bool, indexed
>> attribute 'bool'. i cataloged the two subfolders of /1 there.
>>
>> i have i skript /1/test with the following content:
>> results = context.Catalog.searchResults({'bool':1})
>> print results
>> for o in results:
>>   print o
>>   print o.getId
>>   print o.getId()
>> return printed
>>
>> it prints:
>> [,
>> ]
>> 
>> >
>> Catalog
>> 
>> >
>> Catalog
>>
>> why in the world is o.getId a bound method of /1/Catalog?
>> o is a mybrains instance!!!
>>
>> what am i missing?! help!
>>
>> regards, juergen herrmann
>> ___
>>
>> >> XLhost.de - eXperts in Linux hosting <<
>>
>> Juergen Herrmann
>> Weiherweg 10, 93051 Regensburg, Germany
>> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
>> Fax:  +49 (0)721 151 463027
>>
>> ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
>> WEB:  http://www.XLhost.de
>> ___
>> Zope maillist  -  Zope@zope.org
>> http://mail.zope.org/mailman/listinfo/zope
>> **   No cross posts or HTML encoding!  **
>> (Related lists -
>>  http://mail.zope.org/mailman/listinfo/zope-announce
>>  http://mail.zope.org/mailman/listinfo/zope-dev )
>>
>
>
> --
> Peter Bengtsson,
> work www.fry-it.com
> home www.peterbe.com
> hobby www.issuetrackerproduct.com
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
>


___

>> XLhost.de - eXperts in Linux hosting <<

Juergen Herrmann
Weiherweg 10, 93051 Regensburg, Germany
Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027

ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
WEB:  http://www.XLhost.de
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] bug?

2005-07-06 Thread Peter Bengtsson
Easy. The brain object doesn't have a 'getId()' method. The Catalog has.
What you're probably after is something like this::

 for brain in context.Catalog.searchResults({'bool':1}):
  cataloged_object = brain.getObject()
  if cataloged_object is None:
  print "ZCatalog out of sync!!"
  else:
  print cataloged_object.getId()

On 7/6/05, Jürgen Herrmann <[EMAIL PROTECTED]> wrote:
> hi there!
> 
> either this is a bug or i'm too stoned to see, what's going on...
> 
> i have a folder /1, 2 subfolders /1/11 and /1/22. each subfolder
> has a property 'bool', which is a boolean.
> there's a zcatalog instance in /1/Catalog with one index bool, indexed
> attribute 'bool'. i cataloged the two subfolders of /1 there.
> 
> i have i skript /1/test with the following content:
> results = context.Catalog.searchResults({'bool':1})
> print results
> for o in results:
>   print o
>   print o.getId
>   print o.getId()
> return printed
> 
> it prints:
> [,
> ]
> 
> >
> Catalog
> 
> >
> Catalog
> 
> why in the world is o.getId a bound method of /1/Catalog?
> o is a mybrains instance!!!
> 
> what am i missing?! help!
> 
> regards, juergen herrmann
> ___
> 
> >> XLhost.de - eXperts in Linux hosting <<
> 
> Juergen Herrmann
> Weiherweg 10, 93051 Regensburg, Germany
> Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
> Fax:  +49 (0)721 151 463027
> 
> ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
> WEB:  http://www.XLhost.de
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] bug?

2005-07-06 Thread Jürgen Herrmann
hi there!

either this is a bug or i'm too stoned to see, what's going on...

i have a folder /1, 2 subfolders /1/11 and /1/22. each subfolder
has a property 'bool', which is a boolean.
there's a zcatalog instance in /1/Catalog with one index bool, indexed
attribute 'bool'. i cataloged the two subfolders of /1 there.

i have i skript /1/test with the following content:
results = context.Catalog.searchResults({'bool':1})
print results
for o in results:
  print o
  print o.getId
  print o.getId()
return printed

it prints:
[,
]

>
Catalog

>
Catalog

why in the world is o.getId a bound method of /1/Catalog?
o is a mybrains instance!!!

what am i missing?! help!

regards, juergen herrmann
___

>> XLhost.de - eXperts in Linux hosting <<

Juergen Herrmann
Weiherweg 10, 93051 Regensburg, Germany
Fon:  +49 (0)700 XLHOSTDE [0700 95467833]
Fax:  +49 (0)721 151 463027

ICQ:  27139974  -  IRC: [EMAIL PROTECTED]
WEB:  http://www.XLhost.de
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Why don't work?

2005-07-06 Thread Garito

bruno modulix escribió:


Garito wrote:
 


Lennart Regebro escribió:

   


A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side.


 


Yes, looking at Z2.log it seems it but If I execute the action url
manually it works like I expect

Any idea?

   


Since we're not able to guess what your code is doing (well, I, at
least, am not able to...), you could perhaps post it ?

One thing that strikes me is the final slash in
"POST /Papeles/Yanged/Links/Eliminar/"

What is "Eliminar", exactly ?

 


Links/Eliminar is the execution path (using traverse_subpath)

But if I execute the action URL directly on the browser it works fine

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Why don't work?

2005-07-06 Thread bruno modulix
Garito wrote:
> Lennart Regebro escribió:
> 
>> A wild guess: Your post works, but returns a redirect to a nother
>> page, which returns nothing. This will look exactly like notyhing
>> happened at the browser side.
>>  
>>
> Yes, looking at Z2.log it seems it but If I execute the action url
> manually it works like I expect
> 
> Any idea?
> 
Since we're not able to guess what your code is doing (well, I, at
least, am not able to...), you could perhaps post it ?

One thing that strikes me is the final slash in
"POST /Papeles/Yanged/Links/Eliminar/"

What is "Eliminar", exactly ?

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


Re: [Zope] Why don't work?

2005-07-06 Thread Garito

Lennart Regebro escribió:


A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side.
 

Yes, looking at Z2.log it seems it but If I execute the action url 
manually it works like I expect


Any idea?

Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Why don't work?

2005-07-06 Thread Lennart Regebro
A wild guess: Your post works, but returns a redirect to a nother
page, which returns nothing. This will look exactly like notyhing
happened at the browser side.
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] A function like a FTP Object

2005-07-06 Thread Peter Bengtsson
On 7/6/05, Garito <[EMAIL PROTECTED]> wrote:
> Peter Bengtsson escribió:
> 
> >>Hi!
> >>does this work on a folder?
> >>
> >>
> >>
> >Sure it does. Did you understand any of my code? I subclassed it on
> >the folder class.
> >
> >
> >
> >>The struct.xml function is on a folder object and I would like
> >>struct.xml as an object contained by the folder one
> >>
> >>
> >>
> >This is completely outside the zope management interface. Perhaps it
> >is possible to override the PUT() function inside Zope but I doubt it.
> >Look into writing your own python product.
> >
> >
> >
> >
> >>Thanks!
> >>
> >>--
> >>Mis Cosas
> >>http://blogs.sistes.net/Garito/
> >>

> >
> Yes, I think I understand your code but correct me if I get wrong: this
> code converts your folder in a file on the FTP server
> 
> But what I need is to see the method like a file on the folder not the
> folder itself
> 
> Did your code works like I need?
> 

This is getting confusing. I can't have a file (seen when listing a
folder) that is clever enough to do PUT() calls on itself.
My code showed how to put a PUT() function on a folder (Folder-based).
That means that if you do a PUT request onto the Folder, (eg.
uploading a file) it get's picked up by that method.


> THANKS!!!
> 
> --
> Mis Cosas
> http://blogs.sistes.net/Garito/
> 
> 
> ___
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )
> 


-- 
Peter Bengtsson, 
work www.fry-it.com
home www.peterbe.com
hobby www.issuetrackerproduct.com
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Why don't work?

2005-07-06 Thread bruno modulix
Garito wrote:
> Andreas Jung escribió:
> 
>>
>>
>> --On 6. Juli 2005 10:29:45 +0200 Garito <[EMAIL PROTECTED]> wrote:
>>
>>>
>>> My question is why If I push Eliminar button don't submit the form to
>>> the
>>> correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?
>>>
>>
>> What happens instead? Look at your Z2.log to figure out what is
>> requested.
>>
>> -aj
> 
> 
> Hi Aj!
> this is the Z2.log modification after submit the form
> 
> *192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "POST
> /Papeles/Yanged/Links/Eliminar/ HTTP/1.1" 302 

-> 10.3.3 302 Found

The requested resource resides temporarily under a different URI. Since
the redirection might be altered on occasion, the client SHOULD continue
to use the Request-URI for future requests. This response is only
cacheable if indicated by a Cache-Control or Expires header field.

The temporary URI SHOULD be given by the Location field in the response.
Unless the request method was HEAD, the entity of the response SHOULD
contain a short hypertext note with a hyperlink to the new URI(s).

If the 302 status code is received in response to a request other than
GET or HEAD, the user agent MUST NOT automatically redirect the request
unless it can be confirmed by the user, since this might change the
conditions under which the request was issued.

  Note: RFC 1945 and RFC 2068 specify that the client is not allowed
  to change the method on the redirected request.  However, most
  existing user agent implementations treat 302 as if it were a 303
  response, performing a GET on the Location field-value regardless
  of the original request method. The status codes 303 and 307 have
  been added for servers that wish to make unambiguously clear which
  kind of reaction is expected of the client.

(http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html)


> 383
> "http://yanged:8280/Papeles/Yanged/Links/Ver"; "Mozilla/5.0 (Windows; U;
> Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"

> 192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "GET
> /Papeles/Yanged/Links/Ver HTTP/1.1" 200 3434

Your POST request seems to be transformed into a GET to another url...
Now *why* this happens, I can't tell you...

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


Re: [Zope] Why don't work?

2005-07-06 Thread Garito

Andreas Jung escribió:




--On 6. Juli 2005 10:29:45 +0200 Garito <[EMAIL PROTECTED]> wrote:



My question is why If I push Eliminar button don't submit the form to 
the

correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?



What happens instead? Look at your Z2.log to figure out what is 
requested.


-aj


Hi Aj!
this is the Z2.log modification after submit the form

*192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "POST 
/Papeles/Yanged/Links/Eliminar/ HTTP/1.1" 302 383 
"http://yanged:8280/Papeles/Yanged/Links/Ver"; "Mozilla/5.0 (Windows; U; 
Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "GET 
/Papeles/Yanged/Links/Ver HTTP/1.1" 200 3434 
"http://yanged:8280/Papeles/Yanged/Links/Ver"; "Mozilla/5.0 (Windows; U; 
Windows NT 5.1; es-ES; rv:1.7.8) Gecko/20050511 Firefox/1.0.4"
192.168.0.129 - Garito [06/Jul/2005:10:38:03 +0200] "GET /favicon.ico 
HTTP/1.1" 404 1266 "" "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; 
rv:1.7.8) Gecko/20050511 Firefox/1.0.4"*


Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] Why don't work?

2005-07-06 Thread Andreas Jung



--On 6. Juli 2005 10:29:45 +0200 Garito <[EMAIL PROTECTED]> wrote:


My question is why If I push Eliminar button don't submit the form to the
correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?



What happens instead? Look at your Z2.log to figure out what is requested.

-aj

pgpcxHJqo51Mc.pgp
Description: PGP signature
___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )


Re: [Zope] A function like a FTP Object

2005-07-06 Thread Garito

Peter Bengtsson escribió:


Hi!
does this work on a folder?

   


Sure it does. Did you understand any of my code? I subclassed it on
the folder class.

 


The struct.xml function is on a folder object and I would like
struct.xml as an object contained by the folder one

   


This is completely outside the zope management interface. Perhaps it
is possible to override the PUT() function inside Zope but I doubt it.
Look into writing your own python product.


 


Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito/


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

   




 

Yes, I think I understand your code but correct me if I get wrong: this 
code converts your folder in a file on the FTP server


But what I need is to see the method like a file on the folder not the 
folder itself


Did your code works like I need?

THANKS!!!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )


[Zope] Why don't work?

2005-07-06 Thread Garito

Hi all!

I create a ZPT with this result:

action="http://yanged:8280/Papeles/Yanged/Links/Eliminar/";>

   
   
   
   
   value="Links1" />

   
   href="http://yanged:8280/Papeles/Yanged/Links/Editar/Links1";>Mis Cosas

   
   
   href="http://blogs.sistes.net/Garito/";>http://blogs.sistes.net/Garito/

   
   


The original result has more  with id="Links2", etc 
that I delete for your confort (I think this don't modify the problem)


My question is why If I push Eliminar button don't submit the form to 
the correct url (http://yanged:8280/Papeles/Yanged/Links/Eliminar)?


Thanks!

--
Mis Cosas
http://blogs.sistes.net/Garito/


___
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope-dev )