[Zope-dev] Re: SQL null to None patch

2005-07-20 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Andreas Jung wrote:
> 
> 
> --On 20. Juli 2005 16:41:01 +0100 Andrew Veitch <[EMAIL PROTECTED]>
> wrote:
> 
>> I'm happy to do a unit test for the one line of code in the patch -  but
>> not for the other 2600+ lines of ZRDB code!
>>
>>
> That's better than nothing :-)

Yup.  The first test for an old module is by far the hardest one to
write.  At least if it exists, then somebody else can create an
additional test for the next one-liner more easily;  at best, somebody
might start writing the tests we all wish had been written in the first
place (back before we had our current testing culture, of course).


Tres.
- --
===
Tres Seaver  +1 202-558-7113  [EMAIL PROTECTED]
Palladion Software   "Excellence by Design"http://palladion.com
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFC3nts+gerLs4ltQ4RAvbyAKCGdXr4px27NRgfJbOy6x9Fi/mRRgCeMlly
BY0Ih+KEj16sp2Ca1Stmyc0=
=nXUH
-END PGP SIGNATURE-
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Listing a groups users via Python and portal_groups

2005-07-20 Thread Takahashi, Michael








Hi guys,

 

I’m trying to work on a function call using Python
that will list the users of any specified group using the function portal_groups.

 

I’ve been able to successfully do this the opposite
way by getting the users groups via portal_membership:

 

portal.portal_membership.getAuthenticatedMember().getGroups()

 

Which will return all groups this user is associated with.

 

So I’ve been testing using portal_groups with function
calls similar to this:

 

portal.portal_groups.getGroupById("staff").getUsers()

 

Where “staff” is the name of the group. This almost
does what I need, but not quite close enough because it lists all groups and
all users.  Any suggestions or help is greatly appreciated!

 

Thanks,

 

Mike

 

 

 

 

Mike Takahashi
Web Developer • [EMAIL PROTECTED]

UCLA Office of Instructional Development
mtakahashi (at) oid.ucla.edu
310.794.9371

 






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


Re: [Zope-dev] SQL null to None patch

2005-07-20 Thread Andreas Jung



--On 20. Juli 2005 16:41:01 +0100 Andrew Veitch <[EMAIL PROTECTED]> 
wrote:



I'm happy to do a unit test for the one line of code in the patch -  but
not for the other 2600+ lines of ZRDB code!



That's better than nothing :-)

-aj


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


Re: [Zope-dev] SQL null to None patch

2005-07-20 Thread Andrew Veitch
I'm happy to do a unit test for the one line of code in the patch -  
but not for the other 2600+ lines of ZRDB code!


A

On 20 Jul 2005, at 16:26, Florent Guillaume wrote:


It would need some kind of unit tests.

Florent


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

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


Re: [Zope-dev] SQL null to None patch

2005-07-20 Thread Florent Guillaume
Andrew Veitch  <[EMAIL PROTECTED]> wrote:
> Is there any chance of getting Dieter Maurer's one line patch into  
> the next bug fix release?
> 
> http://www.zope.org/Collectors/Zope/556
> 
> It would be hugely helpful to us.

It would need some kind of unit tests.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Running unit tests, LOGging errors

2005-07-20 Thread Florent Guillaume
Using Zope 2.8 when I run the unit tests (bin/zopectl test ...) from  
a checkout ("make instance"), I have none of the LOGged errors  
appearing in the ouput.
However if instead I use "make" then mkzopeinstance with another  
directory, running the tests make the errors appear in the output.

There are no other differences in my setup.

Anyone know why and where this behaviour is triggered ?

Florent

--
Florent Guillaume, Nuxeo (Paris, France)   CTO, Director of R&D
+33 1 40 33 71 59   http://nuxeo.com   [EMAIL PROTECTED]


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

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


[Zope-dev] SQL null to None patch

2005-07-20 Thread Andrew Veitch
Is there any chance of getting Dieter Maurer's one line patch into  
the next bug fix release?


http://www.zope.org/Collectors/Zope/556

It would be hugely helpful to us.

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

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