On Nov 7, 2007 8:31 PM, Christopher Arndt <[EMAIL PROTECTED]> wrote:
>

[...]

> If we generated an '__all__ =  [...]' statement for all generated
> database classes in model.py, the user would be either required to keep
> it up-to-date by adding his own model classes or delete the whole statement.
>
> Something like:
>
> # List of symbols exported by this module
> # Add the names of your own model classes to the list to export them
> # or remove the __all__ assignment completely (not recommended).
> __all__ = [
>     'User',
>     'Group',
>     'Permission'
>     ...
> ]
>

I must admit that I would prefer to *not* impose the __all__ usage on
the end-users (thus not impose it in quickstarted model/controllers).
But why not impose it in our TG code.

And I also agree with Tim: I don't like that much the "from datetime
import datetime" and would prefer a more explicit "import datetime"
because it could lead to problem for beginners who want to use
datetime.date but won't now where to find it.

The usage of __all__ in a nearly empty model.py could lead to strange
questions in the ML when people try to import something and forgot to
declare it in __all__. We would have too much questions around this
and I feel it would be an irritation/frustration to beginners more
than a help for them.

Regards,
Florent.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to