Re: Oops, where did GetCurrentFact go?



On Tue, Apr 20, 2010 at 5:39 PM, Toms <toms baugis gmail com> wrote:
> On Tue, Apr 20, 2010 at 5:19 PM, Ryan Kelln <ryankelln gmail com> wrote:
>
> ..
>> I was confused by the syntax of the method calls,...
>> looking through hamster/storage.py shows capitalized methods like
>> GetTodaysFacts() but instead I use get_todays_facts(). Can you
>> de-noobify me?
>
> Hamster is now split into backend that serves data over d-bus, and
> frontend that displays the data.
> The functions that you are using are in the hamster.client module, and
> the standard notion for functions is to use underscores to delimit
> words, instead of using camel case. For details see python style
> guides.
> Also note that all the documentation is in the client module.

sorry, forgot to mention that what you must have been looking on, are
the functions in the storage.py.
That would be the backend that talks to dbus and there is some kind of
convention to use camel case there.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]