[Grok-dev] Are dotted names allowed for a grokproject?

Maurits van Rees m.van.rees at zestsoftware.nl
Sat Apr 26 07:19:13 EDT 2008


What I want to do is this:

maurits at hobb:~/grok $ grokproject one.two
Enter user (Name of an initial administrator user): admin
Enter passwd (Password for the initial administrator user): admin
Enter eggs_dir (Location where zc.buildout will look for and place packages) ['/home/maurits/buildout-eggs']: 
Creating directory ./one.two
Downloading zc.buildout...
Invoking zc.buildout...
Couldn't find index page for 'onetwo' (maybe misspelled?)
While:
  Installing i18n.
  Getting distribution for 'onetwo'.
Error: Couldn't find a distribution for 'onetwo'.

As you can see, this fails.  Is this a known bug?  Or should
grokprojects not have dots in them?

This can be fixed by:

- replacing all occurences in the generated code of onetwo with
  one.two, except in app.py where "class one.two(...)" would give a
  syntax errror

- turning src/onetwo into src/one/two (with a proper __init__.py
  added)

Perhaps something I can look at on the Grokkerdam sprint with
someone? :)

-- 
Maurits van Rees | http://maurits.vanrees.org/
            Work | http://zestsoftware.nl/
"This is your day, don't let them take it away." [Barlow Girl]



More information about the Grok-dev mailing list