# db settingsAPP_FOLDER = os.path.dirname(__file__)APP_NAME = os.path.split(APP_FOLDER)[-1]# DB_FOLDER: Sets the place where migration files will be created# and is the store location for SQLite databasesDB_FOLDER = os.path.join(APP_FOLDER, "databases")DB_URI = "sqlite://storage.db"DB_POOL_SIZE = 1
# db settingsAPP_FOLDER = os.path.dirname(__file__)APP_NAME = os.path.split(APP_FOLDER)[-1]# DB_FOLDER: Sets the place where migration files will be created# and is the store location for SQLite databasesDB_FOLDER = os.path.join(APP_FOLDER, "databases")DB_URI = "google:datastore"DB_POOL_SIZE = 1
# db settingsAPP_FOLDER = os.path.dirname(__file__)APP_NAME = os.path.split(APP_FOLDER)[-1]# DB_FOLDER: Sets the place where migration files will be created# and is the store location for SQLite databases
DB_FOLDER = None # os.path.join(APP_FOLDER, "databases")DB_URI = "google:datastore" # "sqlite://storage.sqlite"DB_POOL_SIZE = 0 # 1
raise ValueError("no %s found for object: %s" % (self.namespace, obj)) ValueError: no dialect found for object: <pydal.adapters.google.GoogleDatastore object at 0x7f30dc76c5d0>
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/5e8af744-1932-4f26-ac01-2de6d3e0b58a%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to py4...@googlegroups.com.
Great job , close to solution.
Is pydal the only library to modify to achieve the compatibility? I suposse the changes required in pydal to make datastore work with py4web won’t be enough to make web2py work too.
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/57240fd1-d3e0-4be7-82e5-65aa8138616b%40googlegroups.com.
Startpoint https://web2gae.appspot.com/
http://py4websqlite.web2gae.appspot.com/wiki
If we use sqlite as db py4web apps can be deployed in GAE. If we upload database files the records created in localhost can be readed, but you cannot write new records.
Will continue
2020-05-11 19:11:48.041 CEST Unable to store in FILE: Framework (/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/restricted.py:66)
Traceback (most recent call last):
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/main.py", line 456, in wsgibase
session._try_store_in_db(request, response)
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/globals.py", line 1251, in _try_store_in_db
if not table._db(table.id == record_id).update(**dd):
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/objects.py", line 2686, in update
ret = db._adapter.update(table, self.query, row.op_values())
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/adapters/google.py", line 440, in update
setattr(item, field.name, self.represent(value, field.type))
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/adapters/google.py", line 248, in represent
return super(GoogleDatastore, self).represent(obj, field_type)
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/adapters/base.py", line 384, in represent
return self.representer.represent(obj, field_type)
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/representers/__init__.py", line 246, in represent
rv = self.get_representer_for_type(field_type)(rv, field_type)
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/representers/__init__.py", line 138, in __call__
return self.adapt(self.call(value, field_type))
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/representers/__init__.py", line 135, in _call
return self.inner_call(value)
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/representers/__init__.py", line 123, in _inner_call
return self.obj.f(self.representer, value, **kwargs)
File "/base/data/home/apps/s~web2gae/1.426602206860768093/gluon/packages/dal/pydal/representers/base.py", line 267, in _datetime
time_items = list(map(int, str(value)[11:].strip().split(":")[:3]))
ValueError: invalid literal for int() with base 10: '47.414717'
Pydal is the only problem. It uses gae API that are deprecated. There is working under way to fox this within one week. Will you be able to help with tests?
On Fri, Apr 24, 2020, 07:43 Jacinto Parga <jpa...@gmail.com> wrote:
Great job , close to solution.
Is pydal the only library to modify to achieve the compatibility? I suposse the changes required in pydal to make datastore work with py4web won’t be enough to make web2py work too.
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4...@googlegroups.com.
I only had an issue with the embebed wiki that does noT allow to update the values or to create a new one, but it allows to import them from a csv file, so I think the issue has not to do with pydal but with some code mistake.
To do:
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/70197c01-7538-41fb-a56b-675ecfc9e7b7%40googlegroups.com.