web2py does NOT follow normal python conventions. You are writing
web2py code not python code =)

--
Thadeus





On Tue, Jun 15, 2010 at 4:41 PM, David Mitchell <[email protected]> wrote:
> Thanks everyone,
> Didn't work for me for a while, then I rewired my brain from "Ruby-mode" to
> "Python-mode" and was off and running!
> Dave M.
>
> On 15 June 2010 10:48, weheh <[email protected]> wrote:
>>
>> +1 regarding Yarko's suggestion. Putting common code into modules is
>> probably the easiest way to have it visible to all controllers. It
>> seems a little kludgy at first, but you get used to it. The one thing
>> to be aware of is that models get executed in alphabetic order. So you
>> may want to stick a number or letter at the beginning of the model
>> name, like A_, B_, C_, etc. to control order of execution. Like I
>> said, a little kludgy, but you get used to it. You will not have this
>> issue if you use the modules approach.
>

Reply via email to