List Info

Thread: ServiceProxy.__getattr__ bug




ServiceProxy.__getattr__ bug
country flaguser name
United States
2007-06-01 14:47:17

Hi the bug tracker didn't let me post as guest/guest.

there is a python error with the %-substitution. I believe what you
wanted is to be able to call module level functions. something like
this.

{{{
--- proxy.py (revision 16)
+;++ proxy.py (working copy)
-34,5 +36,5

def __getattr__(self, name):
if self.__serviceName != None:
- name = "%s.%s" % self.__serviceName
+ name = "%s.%s" % (self.__serviceName,name)
return ServiceProxy(self.__serviceURL, name)
}}}

PS: I have made other changes to the file so the patch may not apply cleanly.
PS2: it seems your trac instance needs some luv if you are interested
I can help getting it into shape (webadmin,account manager,
milestones,versions,etc.

__._,_.___
.

__,_._,___
Re: ServiceProxy.__getattr__ bug
country flaguser name
United States
2007-06-03 17:18:14

Hey,

thanks for the fix, it is checked in now.

just checked trac, it did let me log in as guest/guest and it let me
create a ticket (#14). Not sure why it did not work for you.

Jan

--- In json-rpc%40yahoogroups.com">json-rpcyahoogroups.com, "Jorge Vargas&quot; <jorge.vargas...>
wrote:
>
&gt; Hi the bug tracker didn't let me post as guest/guest.
>
> there is a python error with the %-substitution. I believe what
you
&gt; wanted is to be able to call module level functions. something
like
> this.
&gt;
> {{{
> --- proxy.py (revision 16)
> +++ proxy.py (working copy)
&gt; -34,5 +36,5
>
> def __getattr__(self, name):
&gt; if self.__serviceName != None:
&gt; - name = "%s.%s" % self.__serviceName
> + name = "%s.%s" % (self.__serviceName,name)
>; return ServiceProxy(self.__serviceURL, name)
&gt; }}}
>
> PS: I have made other changes to the file so the patch may not
apply cleanly.
> PS2: it seems your trac instance needs some luv if you are
interested
> I can help getting it into shape (webadmin,account manager,
> milestones,versions,etc.
>

__._,_.___
.

__,_._,___
Re: Re: ServiceProxy.__getattr__ bug
country flaguser name
United States
2007-06-04 10:49:05

hi Jan. about trac it's probably the stupid proxy here at my office for someone reason noone knows how to configure it "right"..... anyway where you able to see my other email title " server-to-client message? and a small patch. " patch there is not a bug but makes code less messy

On 6/3/07, Jan-Klaas Kollhof < keyjaqueyahoo.com"> keyjaqueyahoo.com> wrote:

Hey,

thanks for the fix, it is checked in now.

just checked trac, it did let me log in as guest/guest and it let me
create a ticket (#14). Not sure why it did not work for you.

Jan

--- In json-rpc%40yahoogroups.com" target="_blank">json-rpcyahoogroups.com, "Jorge Vargas&quot; <jorge.vargas...>


wrote:
>
> Hi the bug tracker didn't let me post as guest/guest.
>
> there is a python error with the %-substitution. I believe what
you
&gt; wanted is to be able to call module level functions. something
like
> this.
&gt;
> {{{
> --- proxy.py (revision 16)
> +++ proxy.py (working copy)
&gt; -34,5 +36,5
>
> def __getattr__(self, name):
&gt; if self.__serviceName != None:
&gt; - name = "%s.%s" % self.__serviceName
> + name = "%s.%s" % (self.__serviceName,name)
>; return ServiceProxy(self.__serviceURL, name)
&gt; }}}
>
> PS: I have made other changes to the file so the patch may not
apply cleanly.
> PS2: it seems your trac instance needs some luv if you are
interested
> I can help getting it into shape (webadmin,account manager,
> milestones,versions,etc.
>


__._,_.___
.

__,_._,___
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )