Hi,
There is the plugin which should still be working ad far as I know. Haven't
udated to the latest PSA source for quite some time though but you could do
that yourself.
https://code.google.com/p/w2p-social-auth/
Quint
Sent from my HTC
On Dec 7, 2014 1:45 AM, "lpg" wrote:
I suspect we need to add something like this in google.py.
But I cannot test anything at the moment so maybe you can try this?
def filter(self, query, tableobj, prop, op, value):
# NDB uses "_key" in stead of "__key__"
if prop == "__key__": prop = "_key"
return self.GAE_FILTER_OPTIONS[op](que
There was something else I wanted to check.
But I need the stack trace first.
Could you post it?
On Sunday, November 2, 2014 12:18:50 AM UTC+1, Russ King wrote:
>
> I have established at least a work-around to this issue by updating
> google.py file in adapters and creating a new class to use
ood wireless connection, it should be Quint. In my
> experience with mobile apps, what makes things slow is data transfers,
> these forms transfer a lot less data. In fact this follows the model I
> already use for all my mobile apps, transmit json for compactness, make
> htm
Massimo,
Is this also faster on mobile devices?
They tend to be a little slow with JavaScript is my experience.
On Friday, September 5, 2014 7:56:23 AM UTC+2, Massimo Di Pierro wrote:
> Please find attached a welcome4.zip with contains the following files:
>
> controllers/default.py
> views/la
Looking at the code again, I see there are 5 more instances of:
Key.from_path
I think they should all be replaced by:
self.keyfunc
(Not necessarily related to the issue btw)
On Monday, September 1, 2014 1:32:33 PM UTC+2, Quint wrote:
> Ok,
>
> I did not test this but from what can
>=': lambda q, t, p, v: q.filter(getattr(t,p) >= v),
> '!=': lambda q, t, p, v: q.filter(getattr(t,p) != v),
> 'in': lambda q, t, p, v: q.filter(getattr(t,p).IN(v)),
> }
>
> def filter(self, query, tableobj, prop, op, value):
>
Could you post the stacktrace?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
isinstance(second, set):
second = list(second)
if first.type == 'id':
second = [Key.from_path(first._tablename, int(i)) for i in second]
second = [self.keyfunc(first._tablename, int(i)) for i in second]
return [GAEF(first.name, 'in', second, lambda a, b:a in b)]
Hi all,
Could someone approve my post on the developers group?
Thanks!
Quint
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message
Thanks.
Sent from my HTC
On May 26, 2014 1:28 PM, "Niphlod" wrote:
> defaults are "default" and "index" but if a user chooses instead "foo" and
> "bar" for his app you'll never know.
> It should be a configurable parameter in y
n
is?
Thanks!
Quint
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups
&q
What is web2py's public api?
Is it everything that does not start with "_"?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message beca
Hi,
I found out that python-social-auth already supports this.
So I updated my plugin to also support it:
https://code.google.com/p/w2p-social-auth/
Quint
On Monday, April 7, 2014 1:53:32 PM UTC+2, puercoespin wrote:
>
> I think Mozilla Persona (http://www.mozilla.org/en-US/persona/)
>
>
> On Thursday, February 27, 2014 8:27:57 PM UTC+1, Quint wrote:
>>
>> Thanks!
>>
>> You could help by installing and testing the plugin:
>>
>>
>>1. You need at least a API key/secret for 1 oauth provider. I know
>>that the
But, like already mentioned, there _is_ an alternative:
https://github.com/omab/python-social-auth
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You
here<https://code.google.com/p/w2p-social-auth>
4. Post any issues you find in the issue list
Quint
On Thursday, February 27, 2014 5:57:33 PM UTC+1, mweissen wrote:
>
> Ok, what can I do, how can I help?
>
> Regards, Martin
>
>
> 2014-02-27 16:39 GMT+01:00 Quint >:
Hi,
I need some people to test-drive this.
Who want to help here and try it out?
As soon as I get the initial bugs out and any bugs resulting from platform
differences, it can be advertised.
Thanks!
Quint
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http
James,
May I suggest we continue this discussion in the google code repo? You
could create an issue with a link to this thread.
Quint
On Feb 23, 2014 10:21 PM, "James Q" wrote:
> Hello again,
>
> Thanks for taking your time to engage with me. Hopefully I can get this
>
meone give me the steps to properly package a w2p without using the
admin interface?
(I removed it from the repo)
Quint
On Sunday, February 23, 2014 10:21:05 PM UTC+1, James Q wrote:
>
> Hello again,
>
> Thanks for taking your time to engage with me. Hopefully I can get this
&
same right? Are you sure everything is included in the one
packed by yourself?
Regards,
Quint
On Saturday, February 22, 2014 4:15:11 AM UTC+1, James Q wrote:
>
> Interesting plugin, thanks for the link.
>
> I took that repository, tar'ed and gzip'ed it, and uploaded it
Hi,
You could have a look at
python-social-auth<https://github.com/omab/python-social-auth> and
if you like it and don't know how to integrate it, have a look at this
plugin <https://code.google.com/p/w2p-social-auth/> to integrate it in
web2py.
Quint
On Wednesday, Feb
https://code.google.com/p/w2p-social-auth/
On Tuesday, February 18, 2014 7:19:15 AM UTC+1, Quint wrote:
>
> I'm working on a plugin. I expect to have an initial version somewhere
> this week..
>
> Quint
>
--
Resources:
- http://web2py.com
- http://web2py.com/book
I'm working on a plugin. I expect to have an initial version somewhere this
week..
Quint
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You rec
My experience is you cannot cache any "web2py" classes on GAE.
Also rows are not cachable (even with cachable=true).
I only cache dicts.
If i remember correctly, the GAE pickler tries to resolve the "module" property
of the pickled object and fails to import it somewhere.
But you'll need to debug
arily implement a similar method by
> subclassing GoogleDatastoreAdapter so it pre-processes data without
> applying changes.
What do you mean by "temporarily"?
Could the feature be implemented in the future with a different name?
Quint
On Saturday, January 11, 2014 2:07:56 P
Sorry for the confussion..
But it works fine. I will definitally use this.
(I posted something stupid and removed the stupid post but left some traces.
;-))
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.
Please Ignore that.
I got it.
Works great!
On Thursday, January 9, 2014 7:21:45 PM UTC+1, Quint wrote:
>
> Excellent!
>
> I already included it to try it out but how do i use it?
>
> When I use your example I get:
>
> AttributeError: 'DAL' object has no attribu
Excellent!
I already included it to try it out but how do i use it?
When I use your example I get:
AttributeError: 'DAL' object has no attribute '_insert'
(obviously because there is no _select() in DAL)
When i try:
db._adapter._insert(props)
I get:
File "C:\U
Ok.
I will manage this myself then where I need it.
thanks anyway!
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you
>
> I would still prefer to use web2py to retreive it.
by using it's _tableobj I meant.. and then use GAE api
On Wednesday, January 8, 2014 5:34:05 PM UTC+1, Quint wrote:
>
> As long as it's not we will need to use GAE api directly then..
>
> To put() the ent
As long as it's not we will need to use GAE api directly then..
To put() the entity that is.
I would still prefer to use web2py to retreive it.
On Wednesday, January 8, 2014 5:14:14 PM UTC+1, Quint wrote:
>
> Also, is the use of named keys supported by DAL? I think it is not
>
Sorry, I don't understand this line.
although I belive storing records without id assignment would be
> restrictive for apps
Do you mean web2py apps or GAE apps? What did you mean by "restrictive"
(and I doubt it will be actually compatible at all
Compatible with what?
Sure, when you would
>
> Also, is the use of named keys supported by DAL? I think it is not
As long as it's not we will need to use GAE api directly then..
On Wednesday, January 8, 2014 3:53:05 PM UTC+1, Alan Etkin wrote:
>
> > (For instance when I want to supply a "key_name" when I put() an entity
> so I can ha
Well, put_multi 'm not sure about, maybe the difference in this case is
insignificant (didn't research it.)
But get_by_key_name() is less expensive than a fetch for a single record.
On Wednesday, January 8, 2014 3:53:05 PM UTC+1, Alan Etkin wrote:
>
> > (For instance when I want to supply a "key
that mean you should not allow it to be inserted that way?
Nothing restricts users from operating (using web2py api) on rows inserted
with GAE api
dfields=dict((f.name,self.represent(v,f.type)) for f,v in fields)
# table._db['_lastsql'] = self._insert(table,fields)
value)
new_fields[name] = (field,value)
The last option feels a bit hacky but removes the requirement to define a
Field 'gae_key_name' in every Table.
What to you think?
I attached a patch that includes both changes.
Regards,
Quint
--
Resources:
- http://web2p
Here is a patch.
On Tuesday, January 7, 2014 9:03:48 AM UTC+1, Massimo Di Pierro wrote:
>
> Thank you. I will take care of this asap. Can you submit a patch?
>
> On Friday, 3 January 2014 04:10:11 UTC-6, Quint wrote:
>>
>> I created an issue for this:
>>
>&
I created an issue for this:
https://code.google.com/p/web2py/issues/detail?id=1842
On Thursday, January 2, 2014 6:45:59 PM UTC+1, Quint wrote:
>
> Hello everybody,
>
> Happy New Year!
>
> I'm using GAE and sometimes a need to call some GAE datastore functions
> direct
!= field and isinstance(field, Field):
prop._default = field.default
Can this (or something like this) be integrated in the create_table()
method of GoogleDatastoreAdapter() so it's done when the table gets created?
Thanks,
Regards
Quint
--
Resources:
- http://web2py.com
-
Please also consider sass. I started using it recently in combination with
compass.
its a ruby tool but you dont need to know ruby to be able to use it. And there
are python ports also.
Quint
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com
project.
>
> Thanks.
>
> Cato
>
> On Tuesday, November 5, 2013 4:24:14 PM UTC-5, Quint wrote:
>>
>> Hi,
>>
>> I attached a new patch.
>> I also attached a file with a couple of tests I ran. (based on
>> test_dal.py)
>>
>> Needs more
Hi,
I attached a new patch.
I also attached a file with a couple of tests I ran. (based on test_dal.py)
Needs more testing by other GAE users though.
Quint
On Monday, October 28, 2013 2:49:37 PM UTC+1, Massimo Di Pierro wrote:
>
> If you send me a revised patch to do this, I will inclu
Ok,
I will look at it this weekend.
On Monday, October 28, 2013 2:49:37 PM UTC+1, Massimo Di Pierro wrote:
> If you send me a revised patch to do this, I will include. It may be
> better than using a different adapter.
>
> On Monday, 28 October 2013 01:40:41 UTC-5, Quint wrot
Yes, using the same adapter with a parameter is also a possibility i thought
of. Don't really know anymore why i choose this. Maybe because initially i
wanted to create a plugable thingy without changing the DAL code.
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
-
Anyway, i think your solution is very clever.
maybe i'll set something like that up for the tests that fail to run
otherwise...
But i've not given up yet...
Quint
On Tuesday, October 15, 2013 3:47:54 PM UTC+2, Christian Foster Howes wrote:
> unittest on GAE has been a challenge f
()
self.testbed.init_memcache_stub()
#env = exec_environment()
environment = env('init', True)
On Monday, October 14, 2013 8:31:34 PM UTC+2, Quint wrote:
>
> Guys,
>
> What are the steps i need to take to be able to run tests while using GAE?
>
> Do you want me to to
I created an issue:
https://code.google.com/p/web2py/issues/detail?id=1722
On Sunday, October 13, 2013 6:36:36 PM UTC+2, Quint wrote:
>
> I have an update regarding this question.
>
> After i changed these lines, i'm getting a step further:
>
> if not request.env.web2py_r
Guys,
What are the steps i need to take to be able to run tests while using GAE?
Do you want me to to create an issue?
On Sunday, October 13, 2013 3:14:46 PM UTC+2, Quint wrote:
>
> That indeed had something to do with it.
> After i changed it to this:
>
> db = DAL(
ICATION_ID environ.
How can i make this work?
Thanks!
On Sunday, June 16, 2013 10:33:40 AM UTC+2, Massimo Di Pierro wrote:
>
> Please open a ticket. This is supposed to work, with quirks, but it should
> work.
>
> On Wednesday, 12 June 2013 12:20:16 UTC-5, Quint w
onment('applications/init/models/db.py')
File "C:\Users\Quint\Documents\Projects\GAE\***\gluon\shell.py",
line 93, in exec_environment
execfile(pyfile, env)
File "applications/init/models/db.py", line 30, in
session.connect(request, response, db
ction error:
Traceback (most recent call last):
File "C:\Users\Quint\Documents\Projects\GAE\***\gluon\dal.py", l
ine 7854, in __init__
self._adapter = ADAPTERS[self._dbname](**kwargs)
File "C:\Users\Quint\Documents\Projects\GAE\***\gluon\dal.py", l
ine 2288, in __ini
Issue i had with caching Row objects. The second trace looks like your error.
https://groups.google.com/forum/m/#!searchin/web2py/quint/web2py/G6IkcDU6m-g
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https
I noticed that i can never memcache class objects that are defined within the
web2py part of my code. Simple things like dicts, list or class objects defined
outside web2py (in my GAE root) are ok. Row object also don't pickle with GAE.
I always convert them to dicts.
I did some digging some tim
Hi,
I think web2py should support NDB for the Google Datastore.
NDB a newer datastore api which has automatic caching features built in.
https://developers.google.com/appengine/docs/python/ndb/
I think it would be great for GAE users to be able to use NDB because it
potentially has better perfo
Appears that with set_default, the default param is always evaluated and
this will perform the query every time guess..
On Aug 15, 2013 9:21 PM, "Quint" wrote:
> Thanks!
>
> Got it woking now but i got strange results:
>
> ("Not working" means that the same
will store each fetched owner record in the owners dict, so the
> record will be copied from the dict if it is already there rather than
> pulled from the db.
>
> Anthony
>
> On Thursday, August 15, 2013 12:09:02 PM UTC-4, Quint wrote:
>>
>> But when when a row is cal
ch 1x and use that record for all rows from the
initial set that reference it.
On Aug 15, 2013 4:18 PM, "Anthony" wrote:
> On Thursday, August 15, 2013 10:04:45 AM UTC-4, Quint wrote:
>
>> thnx,
>>
>> but my goal is to prevent repeated queries for the same record wh
gust 15, 2013 2:19:06 PM UTC+2, Anthony wrote:
> On Thursday, August 15, 2013 6:57:23 AM UTC-4, Quint wrote:
>
>> like this?
>>
>> You run a query with an extra option specify the ref fields to pre-fetch.
>> and then it would query all the referenced rows in a smart
a a join or a single additional select -- this would be much more
> efficient than running a separate select for each row when you've got lots
> of rows.
>
> Anthony
>
> On Tuesday, August 13, 2013 3:34:37 AM UTC-4, Quint wrote:
>>
>> Hello web2py users,
>>
Hello web2py users,
I have a question about reference fields.
When i access a attribute of a reference Field, i notice that the reference
field is represented by an instance of the "Reference" class.
When i access attributes on that reference , will it perform a new query
each time or does it
I made an attempt to do this myself but i need some expert opinions about
it.
https://code.google.com/p/web2py/issues/detail?id=1495
On Friday, June 21, 2013 11:34:26 AM UTC+2, Leonel Câmara wrote:
>
> +1 on this one.
>
> Social login support is a huge pain on the ass. The social network
> hi
do they work as
> expected?
>
> On Thursday, 25 July 2013 11:50:02 UTC-5, Quint wrote:
>>
>> Hi,
>>
>> I'm using *GAE with the development server* and i'm unable to import
>> several external modules.
>>
>>
>> I will try to list the m
Hi,
I'm using *GAE with the development server* and i'm unable to import
several external modules.
I will try to list the modules i'm trying to import and the problems i
encounter with it:
*python-social-auth*
https://github.com/omab/python-social-auth/
I put this module in the site-packag
Will this also support web2py in combination with GAE?
so when i have a GAE project with web2py, will pycharm be web2py "aware" too?
Or does this only work if i create a web2py project?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To u
I did some digging around:
After i changed this piece of code in GoogleDatastoreAdapter, the cacheable
attribute was passed to the *parse() *method in BaseAdapter.
Before the change it wasn't and thus cacheable was always the default value
False.
def select(self,query,fields,attributes):
Should these "RecordDeleter" and "RecordUpdater" be in the response when
"cachable = True" is used?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py
Hi,
I have a problem when i perform a select() on a model with an
"ReferenceProperty" Field.
I'am getting this error:
*("'ReferenceProperty' object has no attribute 'startswith'",)*
*
*
related but nor sure it's the same:
https://groups.google.com/forum/?fromgroups#!topic/web2py/M7civkMWRyo
and
t;
> Anthony
>
> On Thursday, June 20, 2013 10:02:44 AM UTC-4, Quint wrote:
>>
>> Hi,
>>
>> I am using GAE (dev server) and i am unable to cache Row objects.
>> For some reason they cannot be pickled.
>> When a convert it to dicts everything works fine, b
Hi,
I am using GAE (dev server) and i am unable to cache Row objects.
For some reason they cannot be pickled.
When a convert it to dicts everything works fine, but then i am unable to
work with web2py Rows.
This is a related post:
https://groups.google.com/forum/#!msg/web2py/SbJGKMRyeT8/BNybB-z
Hi,
Does anyone have an example on how to hook this up in web2py?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For
Hello,
I'm trying to use the interactive shell with the GAE dev server on Windows.
Wahet do i need to do to getthis working?
I'm now getting this error 5 times:
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2013
Version 2.4.7-stable+timestamp.2013.05.24.17.48.47
Database driv
72 matches
Mail list logo