dvska / appengine-admin Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/appengine-admin
Automatically exported from code.google.com/p/appengine-admin
What steps will reproduce the problem?
1. Create a ModelAdmin for Model containing a user-enterable date property
2. Do not specify a editFields property
3. View the form
What is the expected output? What do you see instead?
Date, Time, and DateTime fields should render with the AdminDateWidget,
etc. Fields rendering as text fields
What version of the product are you using? On what operating system?
r109. Google App Engine
Please provide any additional information below.
Modified admin_forms.py attached
Original issue reported on code.google.com by [email protected]
on 27 Sep 2009 at 3:23
Attachments:
After upgrade to python2.7 - unable to add binary field content.
Traceback (most recent call last):
File "/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/_webapp25.py", line 703, in __call__
handler.post(*groups)
File "/base/data/home/apps/etc/9.350937508009404173/appengine_admin/views.py", line 98, in post
self._callHandlingMethod(url, self.postRegexps)
File "/base/data/home/apps/etc/9.350937508009404173/appengine_admin/views.py", line 111, in _callHandlingMethod
function(*matched.groups())
File "/base/data/home/apps/etc/9.350937508009404173/appengine_admin/authorized.py", line 14, in check_login
handler_method(self, *args, **kwargs)
File "/base/data/home/apps/etc/9.350937508009404173/appengine_admin/views.py", line 200, in new_post
if form.is_valid():
File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/newforms/forms.py", line 99, in is_valid
return self.is_bound and not bool(self.errors)
File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/newforms/forms.py", line 90, in _errors
self.full_clean()
File "/base/python_runtime/python_lib/versions/third_party/django-0.96/django/newforms/forms.py", line 177, in full_clean
value = field.clean(value)
TypeError: clean_for_property_field() takes at least 2 arguments (1 given)
Original issue reported on code.google.com by [email protected]
on 16 Dec 2011 at 9:10
Paging long results otherwise datastore times out and I had to set
limit in listGql.
Original issue reported on code.google.com by valdiic
on 27 Nov 2008 at 12:50
Creating a new comment from the sample classes (in QuickStart wiki page),
edit referenceproperty.
'reference' fails appengine_admin\__init__.py", line 76, in _attachListFields
property.value = getattr(item, property.name)
File "C:\Program\Google\google_appengine\google\appengine\ext\db\__init__.py",
line 2421, in __get__
raise Error('ReferenceProperty failed to be resolved')
Error: ReferenceProperty failed to be resolved
I run the Article and Comment classes and "create new comment" results in
http://localhost:8080/admin/Comment/new/
appengine_admin\__init__.py", line 139, in get
self._callHandlingMethod(url, self.getRegexps)
\appengine_admin\__init__.py", line 158, in _callHandlingMethod
function(*matched.groups())
\appengine_admin\authorized.py", line 14, in check_login
handler_method(self, *args, **kwargs)
\appengine_admin\__init__.py", line 219, in new_get
self.response.out.write(template.render(path, templateValues))
... raise BadValueError('Property %s is required' % self.name)
BadValueError: Property content is required
Original issue reported on code.google.com by valdiic
on 27 Nov 2008 at 11:16
I got a problem using it updating to django 1.2, here's a linke to the full
report
http://stackoverflow.com/questions/5164684/how-to-enable-django-1-2-with-gae-and
-appengine-admin
Traceback:
Traceback (most recent call last):
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 3245, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 3186, in _Dispatch
base_env_dict=env_dict)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 531, in Dispatch
base_env_dict=base_env_dict)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 2410, in Dispatch
self._module_dict)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 2320, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 2216, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File "/media/Lexar/montao/classifiedsmarket/i18n.py", line 16, in <module>
from main import Ad
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1945, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1847, in FindAndLoadModule
description)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1798, in LoadModuleRestricted
description)
File "/media/Lexar/montao/classifiedsmarket/main.py", line 18, in <module>
import appengine_admin
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1945, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1847, in FindAndLoadModule
description)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1798, in LoadModuleRestricted
description)
File "/media/Lexar/montao/classifiedsmarket/appengine_admin/__init__.py", line 1, in <module>
from .views import Admin
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1945, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1847, in FindAndLoadModule
description)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1295, in Decorate
return func(self, *args, **kwargs)
File "/media/Lexar/montao/google/appengine/tools/dev_appserver.py", line 1798, in LoadModuleRestricted
description)
File "/media/Lexar/montao/classifiedsmarket/appengine_admin/views.py", line 19, in <module>
from . import authorized
ImportError: cannot import name authorized
Original issue reported on code.google.com by [email protected]
on 2 Mar 2011 at 7:47
The bot created this issue to inform you that pyup.io has been set up on this repo.
Once you have closed it, the bot will open pull requests for updates as soon as they are available.
there lacked support for google.appengine.ext.db.polymodel.PolyModel
Original issue reported on code.google.com by [email protected]
on 6 Nov 2010 at 3:04
[deleted issue]
CRUD for photos and pictures.
Original issue reported on code.google.com by valdiic
on 27 Nov 2008 at 12:52
Display BooleanProperty as checkbox in edit view.
Original issue reported on code.google.com by valdiic
on 1 Dec 2008 at 7:32
google.appengine.ext.db.Expando seems to be most native model for datastore.
Would be nice to have it supported in admin...
Original issue reported on code.google.com by [email protected]
on 6 Nov 2010 at 3:48
In the newest version of django they have moved the smart_unicode to
django.utils.encoding.
So in model_register.py you should change from:
try:
from django.newforms.util import smart_unicode
except ImportError:
from django.forms.util import smart_unicode
to:
from django.utils.encoding import smart_unicode
Original issue reported on code.google.com by [email protected]
on 14 Jan 2010 at 6:31
Sorting by different columns in ascending or descending order.
Original issue reported on code.google.com by [email protected]
on 27 Nov 2008 at 1:12
Hi
I am getting the above error after installing appengine admin. I am
running appengine patch with appengine and django on Windows Vista.
My model code looks like this:
from google.appengine.ext import db
from django import forms
from django.forms import ModelForm
from django.forms import fields
import appengine_admin
class Contract(db.Model):
forenames = db.StringProperty(verbose_name="forenames")
surname = db.StringProperty(verbose_name="surname")
title = db.StringProperty(verbose_name="title")
class AdminContract(appengine_admin.ModelAdmin):
model = Contract
listFields = ('forenames', 'surname')
editFields = ('forenames', 'surname')
#readonlyFields = (,)
appengine_admin.register(AdminContract)
The full traceback is below:
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 2461, in _HandleRequest
base_env_dict=env_dict)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 354, in Dispatch
base_env_dict=base_env_dict)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1871, in Dispatch
self._module_dict)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1789, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1685, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File "C:\Program Files\Google\google_appengine\removals\common
\appenginepatch\main.py", line 67, in <module>
main()
File "C:\Program Files\Google\google_appengine\removals\common
\appenginepatch\main.py", line 26, in real_main
util.run_wsgi_app(application)
File "C:\Program Files\Google\google_appengine\google\appengine\ext
\webapp\util.py", line 76, in run_wsgi_app
result = application(env, _start_response)
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\core\handlers\wsgi.py", line 241, in
__call__
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\core\handlers\base.py", line 73, in
get_response
if response:
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\middleware\common.py", line 56, in
process_request
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\middleware\common.py", line 142, in
_is_valid_path
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\core\urlresolvers.py", line 257, in
resolve
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\core\urlresolvers.py", line 184, in
resolve
def _get_url_patterns(self):
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\core\urlresolvers.py", line 208, in
_get_url_patterns
raise NoReverseMatch
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\core\urlresolvers.py", line 203, in
_get_urlconf_module
if not callable(lookup_view):
File "C:\Program Files\Google\google_appengine\removals\common\zip-
packages\django-1.0.2.zip\django\utils\importlib.py", line 35, in
import_module
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1445, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1353, in FindAndLoadModule
description)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1303, in LoadModuleRestricted
description)
File "C:\Program Files\Google\google_appengine\removals\urls.py",
line 2, in <module>
import appengine_admin
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1445, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1353, in FindAndLoadModule
description)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1303, in LoadModuleRestricted
description)
File "C:\Program Files\Google\google_appengine\removals
\appengine_admin\__init__.py", line 1, in <module>
from .views import Admin
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1445, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1353, in FindAndLoadModule
description)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1303, in LoadModuleRestricted
description)
File "C:\Program Files\Google\google_appengine\removals
\appengine_admin\views.py", line 15, in <module>
from . import model_register
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1445, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1353, in FindAndLoadModule
description)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1303, in LoadModuleRestricted
description)
File "C:\Program Files\Google\google_appengine\removals
\appengine_admin\model_register.py", line 11, in <module>
from . import admin_forms
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1445, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1353, in FindAndLoadModule
description)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 849, in decorate
return func(self, *args, **kwargs)
File "C:\Program Files\Google\google_appengine\google\appengine\tools
\dev_appserver.py", line 1303, in LoadModuleRestricted
description)
File "C:\Program Files\Google\google_appengine\removals
\appengine_admin\admin_forms.py", line 203, in <module>
class ModelMultipleChoiceField(forms.MultipleChoiceField):
File "C:\Program Files\Google\google_appengine\removals
\appengine_admin\admin_forms.py", line 205, in
ModelMultipleChoiceField
'invalid_choice': _(u'Please select a valid choice. '
NameError: name '_' is not defined
Original issue reported on code.google.com by valdiic
on 21 May 2009 at 11:52
Use Django newforms for object "New" and "Edit" pages.
Original issue reported on code.google.com by valdiic
on 2 Feb 2009 at 3:01
It would be great to have an automatic SlugField, just like in Django Admin
interface.
Smth like this...
class BlogEntry(db.Model):
title = db.StringProperty()
slug = db.SlugProperty(prepopulate_from='title')
and in background post processing:
from django.template.defaultfilters import slugify
slug = slugify(title)
Thanx! Great idea!
Original issue reported on code.google.com by [email protected]
on 27 Nov 2008 at 8:19
I'd like the ability to assign control for some entries to the user.
Whatever the thing is - blog post, classified ad, picture (with
caption/description), etc. - it'd be nice for them to be able to edit or
delete the items.
Original issue reported on code.google.com by JDeibele
on 3 Aug 2009 at 10:03
What steps will reproduce the problem?
1. add a db.BooleanProperty() inside a model
2. i.e. class user(db.Model):
is_public = db.BooleanProperty()
3. go to admin page (localhost:8080/admin/user/list)
What is the expected output? What do you see instead?
I should see page listing all entities of that model, but i get an error page
Traceback (most recent call last):
File "/usr/local/google_appengine/google/appengine/ext/webapp/__init__.py", line 515, in __call__
handler.get(*groups)
File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/views.py", line 92, in get
self._callHandlingMethod(url, self.getRegexps)
File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/views.py", line 111, in _callHandlingMethod
function(*matched.groups())
File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/authorized.py", line 14, in check_login
handler_method(self, *args, **kwargs)
File "/home/jason/Projects/google_app_engine_projects/ga2ootest/appengine_admin/views.py", line 173, in list_get
'items': map(modelAdmin._attachListFields, items),
TypeError: argument 2 to map() must support iteration
What version of the product are you using? On what operating system?
appengine_admin_r109.tgz, Linux Mint 10
Please provide any additional information below.
Tried to check out views page. Haven't had time to go through all models yet.
Original issue reported on code.google.com by [email protected]
on 7 Apr 2011 at 10:14
Display small image for uploaded image file that is stored within
BlobProperty field.
Original issue reported on code.google.com by valdiic
on 1 Feb 2009 at 9:44
What steps will reproduce the problem?
1. open /admin/
What is the expected output? What do you see instead?
TypeError: __init__() takes exactly 1 argument (3 given)
What version of the product are you using? On what operating system?
SVN version r116
Please provide any additional information below.
I tried fix the issue in attach file.
Original issue reported on code.google.com by [email protected]
on 13 Jul 2012 at 8:06
Attachments:
http://dl.dropbox.com/u/2143474/templates.tar.bz2
thank
Original issue reported on code.google.com by [email protected]
on 13 Sep 2010 at 10:18
There should be possibility to select no items for ReferenceProperty fields.
Original issue reported on code.google.com by valdiic
on 27 Nov 2008 at 9:56
Is it?
Original issue reported on code.google.com by eallik
on 25 Dec 2009 at 1:16
Is possible inlinemodelAdmin ?
Original issue reported on code.google.com by [email protected]
on 13 Sep 2010 at 9:59
There should be a logoff button on the admin, as on every usual
authorisation system.
Original issue reported on code.google.com by [email protected]
on 6 Mar 2009 at 10:28
We are looking for a solution and I found that also appengine_admin uses
djangoforms which are not available when upgrading to 2.7. Did you think of a
solution yet? We are discussing it in the google group today:
We've used http://wtforms.simplecodes.com/ in a few WSGI apps.
Might be worth a look, has some great features.
On Mon, Oct 31, 2011 at 7:34 PM, Niklas R <[email protected]> wrote:
> Hi
> My app is upgrading to python 2.7 and used the djangoforms and now with
> python 2.7 I must get out of it since it is no longer included with the
> python 2.7:
>
> from google.appengine.ext.db import djangoforms
> ImportError: cannot import name djangoforms
>
> So I'm considering choosing a complete new form framework while in the
> meantime I just patch in djangoforms. Or do you think I should continue to
> patch in djangoforms since I also patch in the django.paginator and I
> actually quite like it that I can do that? I looked at some form framework
> and I want it to be able to do validation and preferably also form preview.
> Am I better off creating my own form handling than looking for a form
> framework since I can't find one that can do preview?
>
> Thank you
Original issue reported on code.google.com by [email protected]
on 31 Oct 2011 at 3:18
I installed Django 1.03 from www.djangoproject.com and installed it.
After adding
from google.appengine.dist import use_library
use_library('django', '1.0'
I got the following:
ERROR 2009-08-05 17:24:33,680 dev_appserver.py:2953] Exception
encountered handling request
Traceback (most recent call last):
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 2923, in _HandleRequest
base_env_dict=env_dict)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 392, in Dispatch
base_env_dict=base_env_dict)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 2208, in Dispatch
self._module_dict)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 2126, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 2022, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File "/home/jamesd/Dropbox/traqem/traqem.py", line 52, in <module>
import appengine_admin
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1782, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1684, in FindAndLoadModule
description)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1635, in LoadModuleRestricted
description)
File "/home/jamesd/Dropbox/traqem/appengine_admin/__init__.py", line 1,
in <module>
from .views import Admin
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1782, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1684, in FindAndLoadModule
description)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1635, in LoadModuleRestricted
description)
File "/home/jamesd/Dropbox/traqem/appengine_admin/views.py", line 15, in
<module>
from . import model_register
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1782, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1684, in FindAndLoadModule
description)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1635, in LoadModuleRestricted
description)
File "/home/jamesd/Dropbox/traqem/appengine_admin/model_register.py",
line 11, in <module>
from . import admin_forms
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1782, in load_module
return self.FindAndLoadModule(submodule, fullname, search_path)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1684, in FindAndLoadModule
description)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1134, in decorate
return func(self, *args, **kwargs)
File
"/home/jamesd/python/google_appengine/google/appengine/tools/dev_appserver.py",
line 1635, in LoadModuleRestricted
description)
File "/home/jamesd/Dropbox/traqem/appengine_admin/admin_forms.py", line
203, in <module>
class ModelMultipleChoiceField(forms.MultipleChoiceField):
File "/home/jamesd/Dropbox/traqem/appengine_admin/admin_forms.py", line
205, in ModelMultipleChoiceField
'invalid_choice': _(u'Please select a valid choice. '
NameError: name '_' is not defined
INFO 2009-08-05 17:24:33,701 dev_appserver.py:2982] "GET / HTTP/1.1" 500 -
I like appengine-admin a lot so it'd be nice to have this working.
Thanks.
Jim
Original issue reported on code.google.com by JDeibele
on 5 Aug 2009 at 5:32
Creating a comment and then deleting all articles causes ReferenceProperty
failed to be resolved when trying to view comments whose article references
were deleted articles.
Error:
{{{
Traceback (most recent call last):
File "C:\Program
Files\Google\google_appengine\google\appengine\ext\webapp\__init__.py",
line 499, in __call__
handler.get(*groups)
File "Z:\appengine_admin_test\appengine_admin\__init__.py", line 143, in get
self._callHandlingMethod(url, self.getRegexps)
File "Z:\appengine_admin_test\appengine_admin\__init__.py", line 162, in
_callHandlingMethod
function(*matched.groups())
File "Z:\appengine_admin_test\appengine_admin\authorized.py", line 14, in
check_login
handler_method(self, *args, **kwargs)
File "Z:\appengine_admin_test\appengine_admin\__init__.py", line 202, in
list_get
'items': map(modelAdmin._attachListFields,
modelAdmin.model.gql(modelAdmin.listGql))
File "Z:\appengine_admin_test\appengine_admin\__init__.py", line 80, in
_attachListFields
property.value = getattr(item, property.name)
File "C:\Program
Files\Google\google_appengine\google\appengine\ext\db\__init__.py", line
2333, in __get__
raise Error('ReferenceProperty failed to be resolved')
Error: ReferenceProperty failed to be resolved
}}}
Original issue reported on code.google.com by valdiic
on 27 Nov 2008 at 12:49
ERROR 2012-03-11 02:46:02,600 webapp2.py:1553] __init__() takes exactly 1
argument (3 given)
Traceback (most recent call last):
File "/Applications/Developer/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2.py", line 1536, in __call__
rv = self.handle_exception(request, response, e)
File "/Applications/Developer/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2.py", line 1530, in __call__
rv = self.router.dispatch(request, response)
File "/Applications/Developer/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2.py", line 1278, in default_dispatcher
return route.handler_adapter(request, response)
File "/Applications/Developer/GoogleAppEngineLauncher.app/Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/lib/webapp2/webapp2.py", line 1101, in __call__
handler = self.handler(request, response)
TypeError: __init__() takes exactly 1 argument (3 given)
Original issue reported on code.google.com by [email protected]
on 11 Mar 2012 at 2:48
What steps will reproduce the problem?
1. Keep ADMIN_ITEMS_PER_PAGE default of 20
2. add 24 items to datastore.
3. View list of items in App admin panel
What is the expected output? What do you see instead?
I'd expect 20 items to be shown, with pagination text of, "First Previous 1
of 2 Next Last" and hyperlinks to navigate to "next". However, I'm not
seeing this. It acts as if only one page is available (i.e., only 20 items
in datastore) when in fact there are > 20.
What version of the product are you using? On what operating system?
r44 (Windows XP)
Does this happen in your environment?
Original issue reported on code.google.com by nickcharb
on 3 Jan 2009 at 7:51
What steps will reproduce the problem?
1. Have no data in the datastore
2. Run appengine-admin
3. Go to /admin interface
What is the expected output? What do you see instead?
The models I registered in the left menu. There will be no models in the left
menu.
By insterting some data I removed the problem and the models showed in the menu.
Original issue reported on code.google.com by [email protected]
on 25 Jun 2010 at 10:04
What steps will reproduce the problem?
If you assign a single item to listFields, editFields, or readonlyFields it
iterates through the characters of the string instead of treating it like an
array. E.g. if I enter readonlyFields = ("date"), then I get the exception
"<object> has no property d".
What is the expected output? What do you see instead?
Expect it to be "date" but it is just the first character
What version of the product are you using? On what operating system?
N/A
Please provide any additional information below.
You can fix it by checking to see if the object type is an array before your
iteration.
________________________________________________________________________________
_____
For any other users encountering this, as a workaround do: listFields =
(["date"]) instead of listFields = ("date")
Original issue reported on code.google.com by [email protected]
on 8 Nov 2011 at 3:57
if you can, help to integrate taggable-mixin into your admin interface.
http://code.google.com/p/taggable-mixin/
Original issue reported on code.google.com by [email protected]
on 14 Sep 2010 at 8:03
I followed the quickstart but need help getting appengine_admin to work.
Using Django 1.1 with the djangohelper,
Running on Ubuntu, python2.5
When visiting the /admin/ page got the following error and traceback:
ERROR:root:Exception encountered handling request
Traceback (most recent call last):
File
"/home/danielle/projects/appdjango/google_appengine/google/appengine/tools/dev_a
ppserver.py",
line 2978, in _HandleRequest
base_env_dict=env_dict)
File
"/home/danielle/projects/appdjango/google_appengine/google/appengine/tools/dev_a
ppserver.py",
line 411, in Dispatch
base_env_dict=base_env_dict)
File
"/home/danielle/projects/appdjango/google_appengine/google/appengine/tools/dev_a
ppserver.py",
line 2244, in Dispatch
self._module_dict)
File
"/home/danielle/projects/appdjango/google_appengine/google/appengine/tools/dev_a
ppserver.py",
line 2162, in ExecuteCGI
reset_modules = exec_script(handler_path, cgi_path, hook)
File
"/home/danielle/projects/appdjango/google_appengine/google/appengine/tools/dev_a
ppserver.py",
line 2058, in ExecuteOrImportScript
exec module_code in script_module.__dict__
File "/home/danielle/bu2/appdjango/mysite/main.py", line 57, in <module>
main()
File "/home/danielle/bu2/appdjango/mysite/main.py", line 49, in main
(r'^(/admin)(.*)$', appengine_admin.Admin),
TypeError: __init__() takes exactly 1 argument (2 given)
Original issue reported on code.google.com by [email protected]
on 27 Oct 2009 at 12:21
What steps will reproduce the problem?
1. Create a model with a ManyToManyProperty
2. Add that property to the editFields
3. Save a model
What is the expected output? What do you see instead?
Instead of saving an exception is thrown
TypeError: value_from_datadict() takes exactly 3 arguments (4 given)
What version of the product are you using? On what operating system?
Latest trunk version (Rev 116), GAE 1.6.3 with Python 2.7 and Django 1.3
Please provide any additional information below.
A simple change to the signature or value_from_datadict fixes the issue
(similar to issue 33)
Original issue reported on code.google.com by [email protected]
on 20 Mar 2012 at 11:05
Attachments:
What steps will reproduce the problem?
1. Create a simple model with a blob property
class PhotosOfCats(db.Model):
name = db.StringProperty()
image = db.BlobProperty()
2. Create and register corresponding appengine_admin.ModelAdmin
3. Attempt to create a new object via admin interface
What is the expected output? What do you see instead?
Instead of working, an error is thrown:
TypeError: value_from_datadict() takes exactly 3 arguments (4 given)
What version of the product are you using? On what operating system?
Trunk version, lastest GAE (python 2.5)
Please provide any additional information below.
value_from_datadict is being called with 4 arguments because the form includes
FILES in addition to DATA. To fix, simply accept a fourth parameter for FILES
I've attached a diff of admin_widgets.py that resolves this issue
Original issue reported on code.google.com by [email protected]
on 5 Jan 2012 at 8:40
Attachments:
It would be great if "Preview in page" link appeared in edit form, if user
has prepared get_absolute_url method in data model
Original issue reported on code.google.com by [email protected]
on 2 Dec 2008 at 2:04
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.