<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel about="http://blog.gmane.org/gmane.org.user-groups.zope.trizpug">
    <title>gmane.org.user-groups.zope.trizpug</title>
    <link>http://blog.gmane.org/gmane.org.user-groups.zope.trizpug</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1382"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1381"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1380"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1379"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1378"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1377"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1376"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1375"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1374"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1373"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1372"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1371"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1370"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1369"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1368"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1367"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1366"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1365"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1364"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1363"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1382">
    <title>List Advisory</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1382</link>
    <description>TriZPUGlians:

This is to inform you that soon you will be subscribed to our new 
python.org email list.

Python.net has been dying a slow painful death for some time now and 
there has been work behind the scenes to get our list moved to 
python.org for many months. That time has now come.

When you are subscribed to the new list, you will be getting a welcome 
message. It will describe the list purposes, policies, email addresses, 
and URLs.

Your email address subscription is the only thing that will carry over 
to the new list. That means you will need to set yourself a new email 
list password. There will be a description in your subscribe email about 
how to do that.

Also, if you receive the list via daily digest or have your subscription 
set to "no email," you will need to reset that as well *after* setting a 
new password. Of course, if your subscription is set to "no email," then 
you won't see this message either. :)

There are three of you who are "private" members of this list. That is, 
we don't know who you are because you chose to keep your subscriptions 
"private" from the other list of members. So, I guess those three of you 
are own your own to find a way to resubscribe. I bet the front page of 
http://trizpug.org might hold a clue how to do that. :)

I would like to ask that you send no more emails to 
triangle-zpug-w9fvoj/KL/tYD4wyRYr9MO4UqaaL+JwI&lt; at &gt;public.gmane.org Our co-founder Tom Bryan of 
python.net is working with Brad Knowles of python.org to get our list 
archives moved over to python.org.

If you have any questions, you can refer them directly to me, cbc the at 
sign unc the dot mark edu, instead of this list. Before you do, I ask 
that you read this email again closely and consider if it is a really 
important questions first, so I don't get a hundred or so emails to 
answer personally.

Finally, huge gynormous thanks to Tom Bryan, who has run the TriZPUG 
email list for six years. We will have three owners of the new list, 
myself, Mark Biggers, and Rob Lineberger. If you are a regular 
long-standing participant at TriZPUG meetings and also would like to be 
a list owner, just ping me about it.

</description>
    <dc:creator>Chris Calloway</dc:creator>
    <dc:date>2008-05-16T17:22:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1381">
    <title>Re: scope in nested function calls</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1381</link>
    <description>
&amp; thanks Bob too

It seems I have to declare the variable global at least at 
the module level




seems reasonable

As for the term "nesting" - I was using it in the sense that 
fnA() calls fnB(), then anything declared in fnA() should be 
visible to fnB(). At least that was my understanding from a 
long time ago. However looking in google for "wiki" and 
"nesting", I find the term nesting is used only for 
recursive calls by a fn() to itself. I have no idea whether 
I missunderstood nesting when I first heard it, or the 
meaning has changed over 40yrs.

Writing a fn() inside another fn() apparently is called 
enclosing in python, although nesting would seem to be a 
reasonable term for it.

http://www.cs.wlu.edu/~necaise/python/Fundamentals/DefiningFunctions

Joe
</description>
    <dc:creator>Joseph Mack NA3T</dc:creator>
    <dc:date>2008-05-11T22:21:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1380">
    <title>Re: scope in nested function calls</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1380</link>
    <description>First let's note that the functions are not nested. Nested would look like:
def bar():
  bar_value = 3
  def foo():
    print bar_value
  foo()
and then the /reference /to bar_value would work (but not assignment).

To do what you are asking you'd need to make bar_value global, or create 
a class and use class properties.

</description>
    <dc:creator>bob gailer</dc:creator>
    <dc:date>2008-05-11T21:24:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1379">
    <title>Re: scope in nested function calls</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1379</link>
    <description>
On May 11, 2008, at 1:20 PM, Joseph Mack NA3T wrote:



What you're calling "global" would, in Python terms, be a "module- 
level variable". e.g.:

#! /usr/bin/python

# The line below will be executed once when the module is initialized.
bar_value=42

def foo():
         global bar_value
         print "foo: bar_value  %d" %bar_value

def bar():
         bar_value=1
         print "bar: bar_value  %d" %bar_value
         foo()


foo()
bar()
foo()



This should print (untested):

foo: bar_value  42
bar: bar_value  1
foo: bar_value  1



HTH
Philp

</description>
    <dc:creator>Philip Semanchuk</dc:creator>
    <dc:date>2008-05-11T17:54:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1378">
    <title>scope in nested function calls</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1378</link>
    <description>
I've just moved a piece of code out of a long function into another (lower 
nested) function and I'd like the lower nested function to still access (write 
to) variables in the calling function. I'm doing this for readability and so 
that I can test a couple of different versions of the lower nested function by 
commenting out calls in the calling function.

Here's an example piece of code
-------------------------------
#! /usr/bin/python

def foo():
         print "foo: bar_value  %d" %bar_value

def bar():
         bar_value=1
         print "bar: bar_value  %d" %bar_value
         foo()

#main()
bar()

---------

the output is

# ./test_scope.py
bar: bar_value  1
Traceback (most recent call last):
   File "./test_scope.py", line 12, in ?
     bar()
   File "./test_scope.py", line 9, in bar
     foo()
   File "./test_scope.py", line 4, in foo
     print "foo: bar_value  %d" %bar_value
NameError: global name 'bar_value' is not defined

-------------

I can't use "global bar_value" inside foo(), since bar_value isn't global. 
bar_value isn't local, enclosed, global or built-in (AFAIK).

Is there a way to write to variables in a calling function? (If I have to pass 
all variables as parameters, I'd rather leave the code inside the original 
function).

Thanks Joe

</description>
    <dc:creator>Joseph Mack NA3T</dc:creator>
    <dc:date>2008-05-11T17:20:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1377">
    <title>partial write up of last night's plone jam</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1377</link>
    <description>Rob had a need to browse content from a page template and wanted to use
the ATReferenceBrowserWidget to do so. Getting ATReferenceBrowserWidget
to work in an AT schema is straightforward. In fact, in a tip that
newcomer Jonathan Schisler showed us, you can make all of your reference
fields into ATReferencBrowsers by setting two tagged values on the
"content" package in UML:

Tag = imports 
Value = from Products.ATReferenceBrowserWidget.ATReferenceBrowserWidget
import ReferenceBrowserWidget

Tag = default:widget:Reference
Value = ReferenceBrowserWidget

Then any reference line you draw between two classes will create a
reference field on your content type with a field name of the referenced
content type, and that reference field's widget will be an
ATReferenceBrowserWidget. 

But Rob needed to draw a widget on a page template, not on the edit tab
of a content type. So Josh Johnson pulled out some old code from his
spiffy Trac repository which went a little something like this:

Important part #1: the javascript for ATReferenceBrowserWidget:
```````````````````````````````````````````

&lt;html metal:use-macro="here/main_template/macros/master"&gt;
  &lt;head&gt;
    &lt;title tal:content="template/title"&gt;The title&lt;/title&gt;

&lt;metal:javascript_head fill-slot="javascript_head_slot"&gt;
   &lt;tal:getjs tal:define="js
python:here.getUniqueWidgetAttr(context.Schema().fields(),
'helper_js');"&gt;
&lt;tal:js repeat="item js"&gt;
  &lt;script type="text/javascript"
  charset="iso-8859-1"
  tal:condition="python:exists('portal/%s' % item)"
  tal:attributes="src string:$portal_url/$item"&gt;
  &lt;/script&gt;
&lt;/tal:js&gt;
  &lt;/tal:getjs&gt;
&lt;/metal:javascript_head&gt; 
  &lt;/head&gt;
  &lt;body&gt;

Important part #2: using ATReferenceBrowserWidget:
```````````````````````````````````````````
&lt;metal:field use-macro="python:context.widget('otherGenelist',
mode='edit')"&gt;My Field&lt;/metal:field&gt;

It is important to note two things about this solution.  One, it is
context dependent, so if the current context doesn't have a field in its
schema called otherGenelist the page template will barf. Two, you
shouldn't be doing this anyway.  You should really be using Zope's
formlib and use Z3 style adapters, interfaces, browser.zcml, and other
cool stuff which only ubercool people grasp.



</description>
    <dc:creator>Rob Lineberger</dc:creator>
    <dc:date>2008-05-08T16:03:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1376">
    <title>Re: Quick IRC Cheat Sheet</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1376</link>
    <description>
And apparently, that patch is totally unnecessary if you simply install 
AGX with:

easy_install http://svn.plone.org/svn/archetypes/ArchGenXML/trunk/

I had this suspicion and should have check it before patching setup.py.

This tells me that distutils and setuptools are not a compatible as 
advertized. At least not downwardly.

So I won't be submitting this patch after all.

</description>
    <dc:creator>Chris Calloway</dc:creator>
    <dc:date>2008-05-08T15:57:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1375">
    <title>Re: Quick IRC Cheat Sheet</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1375</link>
    <description>
BTW, here is the patch:

http://trac.secoora.org/portal/browser/RAMembers/trunk/RAMembers/archgenxml.setup.py.patch

I'm trying to get this into the AGX product trunk. It turned out last 
night that I don't have commit on Archetypes. So I'll work with the 
developers on their email list to either get them to accept the patch or 
get privileges to at least branch in the Archetypes svn.

</description>
    <dc:creator>Chris Calloway</dc:creator>
    <dc:date>2008-05-08T15:14:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1374">
    <title>Re: Quick IRC Cheat Sheet</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1374</link>
    <description>
Also /leave is very useful for just signing off one channel while 
leaving the others up.

I guess if nothing else, we can have a lightning talk on irc and 
#trizpug at the May meeting.

Josh, thanks for all your help at the Plone Jam last night. Folks, Josh 
got Rob all fixed up on a problem we've been joking about on the 
#trizpug channel for weeks.

And thanks to Mark who sat there with me until 9:30pm while I got the 
ArchGenXML patch finished.

</description>
    <dc:creator>Chris Calloway</dc:creator>
    <dc:date>2008-05-08T13:55:03</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1373">
    <title>Re: wing ide on 64 bit debian</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1373</link>
    <description>
I highly recommend joining the Wingware users list:

http://wingware.com/lists/wingide

It is the best support list I have ever seen. In fact, Wingware support 
alone makes Wing a really good deal.

</description>
    <dc:creator>Chris Calloway</dc:creator>
    <dc:date>2008-05-08T13:38:26</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1372">
    <title>Quick IRC Cheat Sheet</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1372</link>
    <description/>
    <dc:creator>Josh Johnson</dc:creator>
    <dc:date>2008-05-08T13:12:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1371">
    <title>Plone Job Opportunity at CPC (Carolina Pop. Center,UNC)</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1371</link>
    <description>My organization, CPC, is looking for a full time, temporary python 
programmer:

Details: 
http://www.cpc.unc.edu/aboutcpc/employment?wid=4179&amp;func=viewSubmission&amp;sid=4007

There's a strong emphasis on plone and other web tech. Experience in an 
academic environment, and experience with knowledge management and/or 
distance learning are a plus. Adaptability is key.

I'm not personally responsible for filling this position. If you have 
questions, or want to apply, see the contact info on the post :)

Feel free to pass the url along to anybody else you may know that might 
be interested.

Thanks!
JJ


</description>
    <dc:creator>Josh Johnson</dc:creator>
    <dc:date>2008-05-08T13:00:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1370">
    <title>Re: wing ide on 64 bit debian</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1370</link>
    <description>?I checked and ia32-libs is installed.However, I initially tried to install with the .deb file. I retried with the tar file 
and python install script and that worked. 

Jim


You need to install the ia32-libs package via synaptic for Wing to run
on 64 bit.

Rob

On Wed, 2008-05-07 at 14:29 -0400, jim white wrote:
/&gt;/ Debian AMD64 server. Is there a way to get it to run on a 64-bit Linux 
/&gt;/ install?/


</description>
    <dc:creator>jim white</dc:creator>
    <dc:date>2008-05-08T01:14:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1369">
    <title>Re: wing ide on 64 bit debian</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1369</link>
    <description>﻿You need to install the ia32-libs package via synaptic for Wing to run
on 64 bit.

Rob

On Wed, 2008-05-07 at 14:29 -0400, jim white wrote:



_______________________________________________
triangle-zpug mailing list
triangle-zpug&lt; at &gt;starship.python.net
http://starship.python.net/mailman/listinfo/triangle-zpug
</description>
    <dc:creator>Rob Lineberger</dc:creator>
    <dc:date>2008-05-07T18:39:27</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1368">
    <title>wing ide on 64 bit debian</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1368</link>
    <description>I have started to use Wing IDE Personal, but it doesn't install on our 
Debian AMD64 server. Is there a way to get it to run on a 64-bit Linux 
install?

Jim White

</description>
    <dc:creator>jim white</dc:creator>
    <dc:date>2008-05-07T18:29:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1367">
    <title>Re: we're Jammin: Weds 2008-05-07 from 18:00to20:30</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1367</link>
    <description>yes!

JJ

bob gailer wrote:



</description>
    <dc:creator>Josh Johnson</dc:creator>
    <dc:date>2008-05-05T13:25:08</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1366">
    <title>Re: we're Jammin: Weds 2008-05-07 from 18:00 to20:30</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1366</link>
    <description>Only the subject gives a date in the future.

Dare we trust the web link?

Mark R. Biggers wrote:


</description>
    <dc:creator>bob gailer</dc:creator>
    <dc:date>2008-05-05T12:55:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1365">
    <title>Re: we're Jammin: Weds 2008-05-07 from 18:00 to20:30</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1365</link>
    <description>Anyone interested in carpooling from Hillsborough / Chapel Hill?

</description>
    <dc:creator>bob gailer</dc:creator>
    <dc:date>2008-05-05T12:59:06</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1364">
    <title>we're Jammin: Weds 2008-05-07 from 18:00 to 20:30</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1364</link>
    <description>Er, I was editing this latest "Event", while sending the older :) ...

  http://trizpug.org/Members/biggers/plone-jam-2008-05-07-weds/view

Be seeing you!
----mark

Mark R. Biggers writes:
 &gt; Hello fellow trizpug'ers:
 &gt; 
 &gt; Details on the next Plone Jam -- *this* Wednesday:
 &gt; 
 &gt;   http://trizpug.org/Members/biggers/feb-08-jam1/view
 &gt; 
 &gt; 
 &gt; See you there, I hope!
 &gt; 
 &gt; thank you,
 &gt; ----mark
 &gt; 
 &gt; _______________________________________________
 &gt; triangle-zpug mailing list
 &gt; triangle-zpug-w9fvoj/KL/tYD4wyRYr9MNHuzzzSOjJt&lt; at &gt;public.gmane.org
 &gt; http://starship.python.net/mailman/listinfo/triangle-zpug

</description>
    <dc:creator>Mark R. Biggers</dc:creator>
    <dc:date>2008-05-05T12:34:00</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1363">
    <title>we're Jammin: Weds 2008-05-07 from 18:00 to 20:30</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1363</link>
    <description>Hello fellow trizpug'ers:

Details on the next Plone Jam -- *this* Wednesday:

  http://trizpug.org/Members/biggers/feb-08-jam1/view


See you there, I hope!

thank you,
----mark

</description>
    <dc:creator>Mark R. Biggers</dc:creator>
    <dc:date>2008-05-05T12:18:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1362">
    <title>Re: Python voted Favorite Scripting Language in Linux Journal June 2008 issue!</title>
    <link>http://permalink.gmane.org/gmane.org.user-groups.zope.trizpug/1362</link>
    <description>Having used the top 4 extensively, I'm not surprised with the ranking :) 
(Although, as a general purpose language, I might rank bash and Perl 
above PHP... but still below python)

JJ

Robert Geiger wrote:



</description>
    <dc:creator>Josh Johnson</dc:creator>
    <dc:date>2008-05-01T19:43:57</dc:date>
  </item>
  <textinput about="http://search.gmane.org/?group=$group=gmane.org.user-groups.zope.trizpug">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.org.user-groups.zope.trizpug</link>
  </textinput>
</rdf:RDF>
