Re: Weird cgi error

2008-02-25 Thread gherzig
> >> This is some kind of crooked game, right? Your code works fine on a >> local server, and there's no reason why it shouldn't work just fine on >> yours either. All you are changing is the standard input to the process. >> >> Since you claim to have spotted this specific error, perhaps you'd lik

Re: sharing objects between classes

2008-01-28 Thread gherzig
> Diez B. Roggisch a écrit : >> Gerardo Herzig wrote: >> >>> Hi all. Im wondering the way to share a database connection between >>> some >>> classes: >>> >>> So far, i came up with a simple class schema, where each class means >>> each different relation, i mean i have the follow classes >>> >>> c

Re: multimethods decorator

2007-10-10 Thread gherzig
> Gerardo Herzig a écrit : >> Hi all. Im reading the Gido's aproach using decorators at >> http://www.artima.com/weblogs/viewpost.jsp?thread=101605 >> >> It looks good to me, but the examples shows the functionality using >> functions. >> Now, when i try to give this decorator into a method, if i t

Re: migrating to packages

2007-10-03 Thread gherzig
> > On Oct 3, 2007, at 11:42 AM, Gerardo Herzig wrote: > >> Hi all. I have a single file with several classes, wich i want to >> separate into several packages. >> The big file is named, say MYCLASES, and contains a class named >> A(object), and B(A). >> >> We have been using this MYCLASES in the >

Re: executing list of methods (and collecting results)

2007-09-20 Thread gherzig
> Gerardo Herzig wrote: > >> I want the collect_validators() method is to execute any of the >> above methods, and collect their names as items of a list (wich >> will be the collect_validators() return value). > > (inside class definition -- untested) > validators = {"is a number": is_really_a_num