andrewDruV1 / app-engine-site-creator

Automatically exported from code.google.com/p/app-engine-site-creator
0 stars 0 forks source link

app is unworkable on my system #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the version 1.1 ZIP file and extract locally
2. Run the dev_appserver on the app
3. Login using a fake GMail address, but checking "Sign In as
Administrator" on the development login page
4. Pages render from the app, but all attempts to add new content (Create
Page, Edit Sidebar and Bulk edit users) fail

What is the expected output? What do you see instead?
Editing the pre-existing "Welcome to App Engine Site Creator" page works
fine.  Any attempt to add new content fails

What version of the product are you using? On what operating system?
aesc version 1.1 from the ZIP file.  Ubuntu Linux and Mozilla Firefox browser

Please provide any additional information below.

The app is unworkable on my system.  When I add try to Create Page, I
receive this error and the page is not created:

AttributeError at /admin/edit/28/
'NoneType' object has no attribute 'acl'
Request Method:     GET
Request URL:    http://localhost:8080/admin/edit/28/
Exception Type:     AttributeError
Exception Value:    'NoneType' object has no attribute 'acl'
Exception Location:     /aesc/models.py in __get_acl, line 156

Edit Sidebar serves up this error:

TypeError at /admin/edit/sidebar/
string indices must be integers
Request Method:     POST
Request URL:    http://localhost:8080/admin/edit/sidebar/
Exception Type:     TypeError
Exception Value:    string indices must be integers
Exception Location:     /aesc/models.py in __try_parse, line 537

Bulk edit users gives this error:

ValueError at /admin/bulkeditusers/
need more than 1 value to unpack
Request Method:     POST
Request URL:    http://localhost:8080/admin/bulkeditusers/
Exception Type:     ValueError
Exception Value:    need more than 1 value to unpack
Exception Location:     /aesc/views/admin.py in bulk_edit_users, line 606

I'd like to use this code to build an app, but it's simply not working at
this point.  Any suggestions for correcting these problems?

Original issue reported on code.google.com by warrenin...@gmail.com on 23 Dec 2008 at 3:40

GoogleCodeExporter commented 9 years ago
When you first init the system, the Create Page function will create the page 
that is hosted at the root of the 
system (i.e. http://localhost:8080/).  After that, the Create Page link is 
throwing this error for me as well.  To 
create additional pages you would click on "Add Child" of the root page.  This 
is clearly a bug, thanks.

As for Edit Sidebar, there is a yaml format for the sidebar definition which we 
are looking at eliminating (or 
replacing with a UI).  An example for what this looks like can be found in the 
help section 
(http://localhost:8080/admin/help/).  You can also have the system auto-add 
pages to the sidebar from the edit 
page to avoid having to edit the yaml by hand.

Original comment by James.Bo...@gmail.com on 23 Dec 2008 at 2:33

GoogleCodeExporter commented 9 years ago

Original comment by James.Bo...@gmail.com on 23 Dec 2008 at 2:34

GoogleCodeExporter commented 9 years ago
right now every page is forced to be at least a child of the homepage (if not a
grandchild, etc.)... at least in practice. i don't see that as a bad thing 
either. if
you keep it that way and have no qualms about the issue, then you can get the 
Create
Page functionality working by just setting the new page's parent_id to the root 
page
(homepage) key().id

in views/admin.py in the new_page method, where it check "if not parent_page" 
right
before doing the initialization, change that to 

    if parent_page:
        parent_id = parent_page.key().id()
    else:

this will allow the create page functionality to work. i have added this to my
modified codebase which also includes functionality mentioned in issue #19

Original comment by realgt on 29 Jan 2009 at 7:45

Attachments:

GoogleCodeExporter commented 9 years ago
As mentioned the bug for creating a page was fixed in r44.  If the other errors 
continue to manifest themselves 
please open an individual defect and we will investigate.

Original comment by James.Bo...@gmail.com on 1 Feb 2009 at 1:42