Re: [Zope] Javascript obfuscator and Zope

2005-12-30 Thread Tino Wildenhain
David H schrieb:
> Hi list,
> 
> I am wondering if anyone is obfuscating JavaScript  using a python
> script or product.  I did some googling but nothing cropped up.  Seems
> like a nice idea unless the  realities of javascript obfuscation make
> the exercise pointless.

I'd just write good code and skip that obfuscation. It does not prevent
someone from reading the source in any way.

Have a nice day
Tino
___
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] Re: Zope LDAP connection

2005-12-30 Thread Florent Guillaume

Ricardo Alves wrote:

Einar Næss Jensen wrote:

On 12/30/05, Ricardo Alves 
<[EMAIL PROTECTED]> wrote:




Is there any product that features LDAP connections in Zope. Just like
ZMySQLDA for MySQL databases (not a user folder).

In a fast search, I found ZopeLDAP, but it was last released in 2000. Is
there someone working on ldap+zope "low level" stuff?




What exactly are your needs? How low do you need it to be?
If you just need to query an ldap base this is very easy to achieve
via external methods and python-ldap. May also be used to alter the
contents of an ldap base.






However, http://www.dataflake.org/software/ldapuserfolder may also be
used to alter the ldap database (at least I think so. Never tried)



Hi!

I need it to an archetypes ldap storage. CMFMember as an implementation 
(don't know about any other) but it uses LDAPUserFolder, and I think the 
storage should be more generic then that, i.e. should handle all kind of 
content, not only members.


That's why, although I admit this storage can be the base for this work 
(need a deeper look at it), I was asking if there are some working 
"LDAPConnnection" product...


CPSDirectory has had an LDAPBackingDirectory that uses LDAP as a storage for 
quite a while. It's not plone compatible though, it uses an entirely 
different framework.


Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [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] Re: What's limiting my file uploads?

2005-12-30 Thread Kirk Strauser
On Thursday 29 December 2005 17:59, Florent Guillaume wrote:

> In your mail there's a method="post". You're sure you're actually
> executing this same code?

Absolutely positive.

> Otherwise no clue, I'd do a network trace to know what's really posted.

Will do.  I was hoping for an easy answer first.  :-)
-- 
Kirk Strauser
The Day Companies
___
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] find ZClasses instances

2005-12-30 Thread Godefroid Chapelle
Hi, I get to a setup where ZClasses could still be used : one ZClass is 
installed in one of the product.


I need to find out if there are any instance of the ZClass in the ZODB 
in order to migrate them to sthing saner.


I have tried to use the manage_findResult method, passing it the ZClass 
name as meta_type. I got no result. But I am not sure the ZClass name is 
its meta_type.


Any hint how to find out if there are instances of a specific ZClass in 
a ZODB ?


Thanks  
--
Godefroid Chapelle (aka __gotcha)- BubbleNet  http://bubblenet.be

___
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] Help with Zope Python result object please!

2005-12-30 Thread Alric Aneron
hello, I have a python code that recieves two result objects from two different ZSQL methods.  I need to join them (sort of like UNION). I can't do result1+result2, otherwise it raises an exception that the + operator isn't supported. When I try to do this (read below, I explained what i've done if you are lazy to read the code) result1 = context.zsqlmethod1() result2 = context.zsqlmethod2() if (len(result1) == 0):     return result2 row1 = 0 row2 = len(result1) + 1 col = 0 for r in result2:    col = 0    if (context.duplicateExists(result1, result2[row1][0]) == -1):    result1[row2][col] = result2[row][col]    col = col + 1    row1 = row1 + 1    row2 = row2 + 1  return result1  Basically, it loops through the rows and columns of result2 and adds them to the end of th
 e result
 1.  However it for some reason raises "index out of range" and says that assigning result1[0][0]=result2[0][0] (if there is an element in both of them) is illegal because: Error Value: object does not support item or slice assignment I realize that in most programming languages you can't add them to result1 without resizing it first, but I can't find much documentaiton on member functions of the result object, so I can't resize it.   I am completely stuck, I've tried everything, spent so much time on it, can anyone please help save my sanity :P  Thanks in advance guys! I really appreciate it. 
		 Yahoo! DSL Something to write home about. Just $16.99/mo. or less___
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] Help with Zope Python result object please!

2005-12-30 Thread David H




Alric Aneron wrote:
hello,
I have a python code that recieves two result objects from two
different ZSQL methods.  I need to join them (sort of like UNION).
I can't do result1+result2, otherwise it raises an exception that the +
operator isn't supported.
When I try to do this (read below, I explained what i've done if you
are lazy to read the code)
result1 = context.zsqlmethod1()
result2 = context.zsqlmethod2()
if (len(result1) == 0):
    return result2
row1 = 0
row2 = len(result1) + 1
col = 0
for r in result2:
   col = 0
   if (context.duplicateExists(result1, result2[row1][0]) == -1):
   result1[row2][col] = result2[row][col]
   col = col + 1
   row1 = row1 + 1
   row2 = row2 + 1
  
return result1
  
Basically, it loops through the rows and columns of result2 and adds
them to the end of th e result 1.  However it for some reason raises
"index out of range" and says that assigning
result1[0][0]=result2[0][0] (if there is an element in both of them) is
illegal because:
  Error Value: object does not support item or slice assignment
  I realize that in most programming languages you can't add
them to result1 without resizing it first, but I can't find much
documentaiton on member functions of the result object, so I can't
resize it.  
I am completely stuck, I've tried everything, spent so much time on it,
can anyone please help save my sanity :P
  
Thanks in advance guys! I really appreciate it.
   
   Y
Alric,
The merging of two zsql result sets is easy - here's one way:
newResults = []

for r in resultset1:
  newResults.append( r )

for r in resultset2:
  newResults.append( r )

return newResults.

David







___
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] Help with Zope Python result object please!

2005-12-30 Thread Alric Aneron
Thank you sir! Sorry, I am very new to python.  It's quite unlike other languages.  Happy new year! AlDavid H <[EMAIL PROTECTED]> wrote:Alric Aneron wrote: hello, I have a python code that recieves two result objects from two different ZSQL methods.  I need to join them (sort of like UNION). I can't do result1+result2, otherwise it raises an exception that the + operator isn't supported. When I try to do this (read below, I explained what i've done if you are lazy to read the code) result1 = context.zsqlmethod1() result2 = context.zsqlmethod2() if (len(result1) == 0):     return resu
 lt2
 row1 = 0 row2 = len(result1) + 1 col = 0 for r in result2:    col = 0    if (context.duplicateExists(result1, result2[row1][0]) == -1):    result1[row2][col] = result2[row][col]    col = col + 1    row1 = row1 + 1    row2 = row2 + 1return result1Basically, it loops through the rows and columns of result2 and adds them to the end of th e result 1.  However it for some reason raises "index out of range" and says that assigning result1[0][0]=result2[0][0] (if there is an element in both of them) is illegal because:   Error Value: object does not support item or slice assignment   I realize that in most programming languages you can't add them to result1 without resizing it first, but I can't find much documentaiton on member functions of the result object, so I can't resize it. 
   I
 am completely stuck, I've tried everything, spent so much time on it, can anyone please help save my sanity :PThanks in advance guys! I really appreciate it.Y Alric, The merging of two zsql result sets is easy - here's one way: newResults = []  for r in resultset1:   newResults.append( r )  for r in resultset2:   newResults.append( r )  return newResults.  David  
		Yahoo! Photos 
Ring in the New Year with Photo Calendars. Add photos, events, holidays, whatever.___
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] find ZClasses instances

2005-12-30 Thread Dieter Maurer
Godefroid Chapelle wrote at 2005-12-30 17:34 +0100:
>Hi, I get to a setup where ZClasses could still be used : one ZClass is 
>installed in one of the product.
>
>I need to find out if there are any instance of the ZClass in the ZODB 
>in order to migrate them to sthing saner.
>
>I have tried to use the manage_findResult method, passing it the ZClass 
>name as meta_type. I got no result. But I am not sure the ZClass name is 
>its meta_type.

I think, it uses the ZClass name as "meta_type".

However, you can easily verify: create a ZInstance and look at
its ZMI page. What you see in the upper left corner below
the tabs is the "meta_type".

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


Re: [Zope] What's limiting my file uploads?

2005-12-30 Thread Dieter Maurer
Kirk Strauser wrote at 2005-12-29 11:03 -0600:
> ... large uploads fail ...
>For testing purposes, the contents of "username" and "password" are six
>bytes long.  As long as the file specified in "contents" is short (7843
>bytes or less), the "form section of the formatted request object looks
>like:
>
>  form
>  username  'something'
>  password  ''
>  contents  
>
>  cookies
>  ...
>
>As soon as the length of the submission crosses the 7843 byte barrier,
>though, it becomes empty:

Such a problem was discussed a few months ago on the mailing list.
I think, the poster finally found the solution. Searching the archive
might help you.

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