Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin
>  I suppose the way of solving this, is patching that module, but there's 
no such patch so far.

Here's the thing:

- plugin_pyodel needs to call auth.wiki in the model in order to start, 
since it uses the wiki model and also it has a wiki action
- When it calls auth.wiki, the Wiki constructor tries to create a wiki 
editor group and membership for the logged in user automatically in case it 
doesn't find them; for this purpose, the Wiki class checks the current user 
credentials.
- If your app runs on GAE, the check_credentials utility will always return 
a response with a link to the google login in case it doesn't detect a user 
authenticated as administrator. Therefore, you cannot use the wiki unless 
you are the app administrator. This behavior is the cause for the login 
loop.

I'll open an issue about fixing the Wiki constructor, but I think that 
check_credentials should also modified. What's the reason for always 
returning a response with a link to the login if the user is not admin, but 
not for the other environments?

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin

>
> Hi Alan, 
>
> It's true I'm using auth.wiki() in my app. Is there any work around for 
> the time being? 
>
I don't think so, someone should look into web2py/gluon/tools.py to find 
out what is resetting the google accounts login status (or whatever) when 
it returns control to the app. I suppose the way of solving this, is 
patching that module, but there's no such patch so far.

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread 冷春辉
Hi Alan,

It's true I'm using auth.wiki() in my app. Is there any work around for the
time being?
On Mar 30, 2013 12:02 AM, "Alan Etkin"  wrote:

> This is very odd, I belive it is a bug in the app authentication
>>> configuration itself, since I cannot reproduce the  behavior in another GAE
>>> app which also relies in auth for access control. In case I find a way
>>> around this I'll post it here: http://code.google.com/p/**
>>> pyodel/issues/detail?id=1
>>
>>
> I think I found the cause of the funny GAE login redirection loop: It
> occurs in any app which uses the auth.wiki feature. This doesn't happen
> without auth.wiki(...) in the model or controller, even if the app uses
> auth for authentication.
>
> I only tested this with the last python sdk and two different apps, but
> probably will be the same for any app in production using the web2py 2.4 or
> better, so I guess this should be submitted as a web2py issue.
>
>  --
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/acd1SylusMo/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin

>
> This is very odd, I belive it is a bug in the app authentication 
>> configuration itself, since I cannot reproduce the  behavior in another GAE 
>> app which also relies in auth for access control. In case I find a way 
>> around this I'll post it here: 
>> http://code.google.com/p/pyodel/issues/detail?id=1
>
>
I think I found the cause of the funny GAE login redirection loop: It 
occurs in any app which uses the auth.wiki feature. This doesn't happen 
without auth.wiki(...) in the model or controller, even if the app uses 
auth for authentication.

I only tested this with the last python sdk and two different apps, but 
probably will be the same for any app in production using the web2py 2.4 or 
better, so I guess this should be submitted as a web2py issue.

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-29 Thread Alan Etkin

>
> I tried pyodel and faced with the same issue of google login requirement. 
> I signed in with google account but redirect to the "Sign in with your 
> google 
> account."
>  
> page, cannot go any further.


This is very odd, I belive it is a bug in the app authentication 
configuration itself, since I cannot reproduce the  behavior in another GAE 
app which also relies in auth for access control. In case I find a way 
around this I'll post it here: 
http://code.google.com/p/pyodel/issues/detail?id=1

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] [FYI] Pyodel is now a plugin

2013-03-28 Thread Spring
Hello Alan,

I tried pyodel and faced with the same issue of google login requirement. I 
signed in with google account but redirect to the "Sign in with your google 
account."
 
page, cannot go any further.

In fact my own app is facing the same problem. When at the page of "Sign in 
with your google 
account."
 
only signing with the app creator's google account can pass it. Somehow I 
assume it's because the logging is set to login as app administrator by 
some unknown means. I hope you or someone may come up with a solution.

Regards,
Spring

在 2012年10月18日星期四UTC+8下午11时45分15秒,Alan Etkin写道:
>
> > El jueves, 18 de octubre de 2012 12:29:17 UTC-3, Bill Thayer 
> escribió:Just tried it again. Logged in with my email and password 
> > then 
> > it took me to a blank page with one line on top that says to sign in 
> with google password.
>
> I must admit this is some kind of app issue. However, I have created a 
> fake user and authenticated without a Google account. I'll have to check 
> how GAE handles app users so I can fix this somehow.
>
>

-- 

--- 
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 more options, visit https://groups.google.com/groups/opt_out.




Re: [web2py] [FYI] Pyodel is now a plugin

2012-10-18 Thread Alan Etkin
> El jueves, 18 de octubre de 2012 12:29:17 UTC-3, Bill Thayer 
escribió:Just tried it again. Logged in with my email and password 
> then 
> it took me to a blank page with one line on top that says to sign in with 
google password.

I must admit this is some kind of app issue. However, I have created a fake 
user and authenticated without a Google account. I'll have to check how GAE 
handles app users so I can fix this somehow.

-- 





Re: [web2py] [FYI] Pyodel is now a plugin

2012-10-18 Thread Bill Thayer
Just tried it again. Logged in with my email and password then it took me 
to a blank page with one line on top that says to sign in with google 
password.

On Thursday, October 18, 2012 8:23:58 AM UTC-5, Alan Etkin wrote:
>
> >El martes, 16 de octubre de 2012 18:12:46 UTC-3, Bill Thayer escribió:Hi 
> Alan. 
> > I went through the registration process, got the Google sign in. Signed 
> in with google too and then did not get re-directed back.
>
> AFAIK, there's no need to authenticate with a Google account to use the 
> demo. Are you able to authenticate with the registered Auth user?
>
>

-- 





Re: [web2py] [FYI] Pyodel is now a plugin

2012-10-18 Thread Alan Etkin
>El martes, 16 de octubre de 2012 18:12:46 UTC-3, Bill Thayer escribió:Hi 
Alan. 
> I went through the registration process, got the Google sign in. Signed 
in with google too and then did not get re-directed back.

AFAIK, there's no need to authenticate with a Google account to use the 
demo. Are you able to authenticate with the registered Auth user?

-- 





Re: [web2py] [FYI] Pyodel is now a plugin

2012-10-16 Thread Bill Thayer
Hi Alan. 

I went through the registration process, got the Google sign in. Signed in 
with google too and then did not get re-directed back.

-Bill

On Wednesday, September 12, 2012 11:49:47 AM UTC-5, Alan Etkin wrote:
>
> El miércoles, 12 de septiembre de 2012 12:19:02 UTC-3, Tito Garrido 
> escribió:
>>
>> Hey Alan,
>>
>> I was about to test it but it requested access to my google account, is 
>> it expected?
>>
>>
> The Google account login activates if you register with an active google 
> user session. For now you can avoid the extra authentication by closing 
> your google user session before registration. Anyway, clicking the "... 
> google account" gives you normal access to the app too.
>  
>

-- 





Re: [web2py] [FYI] Pyodel is now a plugin

2012-09-12 Thread Alan Etkin
El miércoles, 12 de septiembre de 2012 12:19:02 UTC-3, Tito Garrido 
escribió:
>
> Hey Alan,
>
> I was about to test it but it requested access to my google account, is it 
> expected?
>
>
The Google account login activates if you register with an active google 
user session. For now you can avoid the extra authentication by closing 
your google user session before registration. Anyway, clicking the "... 
google account" gives you normal access to the app too.
 

-- 





Re: [web2py] [FYI] Pyodel is now a plugin

2012-09-12 Thread Alan Etkin
Oops, I's not. Let me see how do I get rid of that

2012/9/12 Tito Garrido :
> Hey Alan,
>
> I was about to test it but it requested access to my google account, is it
> expected?
>
>
> On Wed, Sep 12, 2012 at 12:00 PM, Alan Etkin  wrote:
>>
>> Pyodel demo is now available on Google appspot with new features:
>>
>> - Mode plugin (all functionalities can be deployed in web2py apps by
>> individual components)
>> - Course admission/attendees with CRUD
>> - Course and lecture managing and presentation for students and teachers
>> - Gradebooks with ajax update, formula fields with abbreviated instance
>> names and read/write permissions (with contrib.spreadsheet)
>> - Grade CRUD per student/course/instance
>> - Educational document edition and presentation with the new auth.wiki
>> built-in and markmin
>> - Streaming service and managing for couses and lectures with restricted
>> access for attendees
>> - Automated course admission interface for electronic payment services
>> - Customized panels for students or teachers
>> - Managing and access for student works, exams and quiz (sort of trivias
>> with multiple or single options)
>> - Simplified syntax for quiz submission
>>
>> The (incomplete) docs can be read the project's wiki at
>> http://code.google.com/p/pyodel
>> For using the plugin demo, go to http://pyodel.appspot.com (registration
>> is requisite)
>>
>> It features an example course, with some documents, lectures, video
>> streams and a quiz
>>
>> For enhancements or errors please open an issue at
>> http://code.google.com/p/pyodel/issues
>>
>> Quizzes about web2py are welcome (there's a quiz submission form in the
>> demo page)
>>
>> --
>>
>>
>>
>
>
>
>
> --
>
> Linux User #387870
> .
>  _/_õ|__|
> ..º[ .-.___.-._| . . . .
> .__( o)__( o).:___
>
> --
>
>
>

-- 





Re: [web2py] [FYI] Pyodel is now a plugin

2012-09-12 Thread Tito Garrido
Hey Alan,

I was about to test it but it requested access to my google account, is it
expected?

On Wed, Sep 12, 2012 at 12:00 PM, Alan Etkin  wrote:

> Pyodel demo is now available on Google appspot with new features:
>
> - Mode plugin (all functionalities can be deployed in web2py apps by
> individual components)
> - Course admission/attendees with CRUD
> - Course and lecture managing and presentation for students and teachers
> - Gradebooks with ajax update, formula fields with abbreviated instance
> names and read/write permissions (with contrib.spreadsheet)
> - Grade CRUD per student/course/instance
> - Educational document edition and presentation with the new auth.wiki
> built-in and markmin
> - Streaming service and managing for couses and lectures with restricted
> access for attendees
> - Automated course admission interface for electronic payment services
> - Customized panels for students or teachers
> - Managing and access for student works, exams and quiz (sort of trivias
> with multiple or single options)
> - Simplified syntax for quiz submission
>
> The (incomplete) docs can be read the project's wiki at
> http://code.google.com/p/pyodel
> For using the plugin demo, go to http://pyodel.appspot.com (registration
> is requisite)
>
> It features an example course, with some documents, lectures, video
> streams and a quiz
>
> For enhancements or errors please open an issue at
> http://code.google.com/p/pyodel/issues
>
> Quizzes about web2py are welcome (there's a quiz submission form in the
> demo page)
>
> --
>
>
>
>



-- 

Linux User #387870
.
 _/_õ|__|
..º[ .-.___.-._| . . . .
.__( o)__( o).:___

--