Kevin Dangoor wrote:
On 1/4/06, Jeremy Jones <[EMAIL PROTECTED]> wrote:

I'm having quasi-random re-occurrences of this problem again even after
SVN upping last night.


Just to confirm something. I know that initialize was asked about, but
make sure you don't have any of these as variable names:

 'content',
 'generate',
 'initialize',
 'pull',
 'serialize',
 'serializer',
 'transform',
 'write']

If you have one of these in an if, you might get an error like that
only when the condition is true.

Kevin

I don't think this is my problem.  Here's checking my controllers directory:

[EMAIL PROTECTED] 10:29AM pppweb % for phrase in content generate initialize pull serialize transform write
for> do
for> echo "****************************"
for> echo Checking for $phrase
for> grep $phrase *py
for> echo "****************************"
for> done
****************************
Checking for content
****************************
****************************
Checking for generate
****************************
****************************
Checking for initialize
****************************
****************************
Checking for pull
****************************
****************************
Checking for serialize
tg_store.py:    def serialize_details(self):
tg_store.py:        element_root = ElementTree.Element("serialized")
tg_store.py: order_item = model.OrderItem(customer_order=order_id, product=base_id, quantity=base_quantity, details=cart_item.serialize_details())
****************************
****************************
Checking for transform
****************************
****************************
Checking for write
****************************

The only thing in my controller containing a part of the word is "serialize", but on anything that should probably cause conflict, "serialize" is only a piece of some of one of the method names.


Here's checking my templates directory:
[EMAIL PROTECTED] 10:31AM templates % for phrase in content generate initialize pull serialize transform write
do
echo "****************************"
echo Checking for $phrase
grep $phrase *kid
echo "****************************"
done
****************************
Checking for content
do_add_to_cart.kid: <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> form_page.kid: <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> help.kid: <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/> master.kid: <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
master.kid:    <div id="contents">
master.kid: <div class="flash" py:content="tg_flash"></div>
master.kid:                <!--content-->
master.kid:                <td py:content="item[:]" id="main">
master.kid:                <!--content-->
registration_successful.kid: <meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
****************************
****************************
Checking for generate
****************************
****************************
Checking for initialize
****************************
****************************
Checking for pull
****************************
****************************
Checking for serialize
****************************
****************************
Checking for transform
****************************
****************************
Checking for write
****************************

And I don't see any problems in the "content" stuff above.


- jmj

Reply via email to