[FYI] Pyodel is now a plugin

225 views
Skip to first unread message

Alan Etkin

unread,
Sep 12, 2012, 11:00:55 AM9/12/12
to web...@googlegroups.com
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)

Tito Garrido

unread,
Sep 12, 2012, 11:11:53 AM9/12/12
to web...@googlegroups.com
Hey Alan,

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


--
 
 
 



--

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

Alan Etkin

unread,
Sep 12, 2012, 11:23:52 AM9/12/12
to web...@googlegroups.com
Oops, I's not. Let me see how do I get rid of that

2012/9/12 Tito Garrido <titog...@gmail.com>:
> --
>
>
>

Alan Etkin

unread,
Sep 12, 2012, 12:49:47 PM9/12/12
to web...@googlegroups.com
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.
 

Bill Thayer

unread,
Oct 16, 2012, 5:12:46 PM10/16/12
to web...@googlegroups.com
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

Alan Etkin

unread,
Oct 18, 2012, 9:23:58 AM10/18/12
to web...@googlegroups.com
>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?

Bill Thayer

unread,
Oct 18, 2012, 11:29:17 AM10/18/12
to web...@googlegroups.com
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.

Alan Etkin

unread,
Oct 18, 2012, 11:45:15 AM10/18/12
to web...@googlegroups.com
> 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.

Spring

unread,
Mar 28, 2013, 11:51:48 PM3/28/13
to web...@googlegroups.com
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写道:

Alan Etkin

unread,
Mar 29, 2013, 9:31:11 AM3/29/13
to web...@googlegroups.com
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

Alan Etkin

unread,
Mar 29, 2013, 12:01:55 PM3/29/13
to web...@googlegroups.com
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.

冷春辉

unread,
Mar 29, 2013, 12:07:09 PM3/29/13
to web...@googlegroups.com

Hi Alan,

It's true I'm using auth.wiki() in my app. Is there any work around for the time being?

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

Alan Etkin

unread,
Mar 29, 2013, 12:16:10 PM3/29/13
to web...@googlegroups.com

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.

Alan Etkin

unread,
Mar 29, 2013, 2:24:54 PM3/29/13
to web...@googlegroups.com
>  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?
Reply all
Reply to author
Forward
0 new messages