naming convention and SVN access

8 views
Skip to first unread message

panxingzhi

unread,
Aug 20, 2008, 9:16:34 PM8/20/08
to FPyS
Hi Tim,

Just to be sure: in Python class, did you use lowerCamelCase for
public methods and words_with_underscores for private methods?

I did some modifications so FPyS now supports recipient pipeline. I'd
like to contribute my code but I want to follow the convention.

I need the SVN access also ;-) I can also upload my market application
demo code.

Btw, do we have code for test cases?

Thanks,
Pan Xingzhi

Tim Freund

unread,
Aug 23, 2008, 11:13:51 PM8/23/08
to fp...@googlegroups.com
Hi Pan --

Great to hear from you again!

That is sort of the idea behind the different naming conventions -- the
lowerCamelCase methods should all match methods that are in the Amazon
FPS API, but otherwise I try to stick to the_underscore method since
that's used much more often in Python code. My thought was that keeping
the Amazon API names the same, it would be easier for people to Google
for assistance if they were running into trouble.

The library is still young, so everything is debatable, of course.

We do have some test cases in trunk already -- you will need
wsgi_intercept to run them, though. "easy_install wsgi_intercept"
should work for you. Here's the idea: I have captured the responses
from the Amazon FPS service and used those responses for the basis of
the existing test cases. We can then use wsgi_intercept to fake the
real Amazon FPS service in the test cases.

Existing test cases are in fpys/tests, and they should run with the
nosetests command from the root of the project. You may want to take a
look at fpys/tests/shell.py and shellconfig.py.example -- I've found
that it's really handy to run shell.py in an ipython session and have an
FPyS client initialized and ready to play with.

For your SVN access, I'll need the output of the following command:
htpasswd -n -s YOURUSERNAME

If you don't have access to a system that has htpasswd on it, you can
give me the SHA1 output from the following page:
http://www.askapache.com/online-tools/htpasswd-generator/

That will give me your password in an encrypted form, and you can send
that to me off the mailing list. Once I get it, I will add it to the
subversion repository, and you'll be all set.

Thanks again for your interest -- let me know if I've left something out
or if you come up with more questions.

Regards,

Tim


--
Tim Freund
http://achievewith.us
http://renovatekc.com

panxingzhi

unread,
Sep 5, 2008, 9:49:14 AM9/5/08
to FPyS
Hi Tim,

I sent you the password off the mailing list last week. Any news?

Pan Xingzhi
Reply all
Reply to author
Forward
0 new messages