Hi,
What are the latest in integrating Auth with CAS?
I found this bit in the auth code:
# use a central authentication server
cas = self.settings.login_form
cas_user = cas.get_user()
if cas_user:
cas_user[passfield] = None
2010/8/24 mdipierro :
> P.S. In the end the bottle neck is ALWAYS database access.
true! many driver implementations do not release the GIL properly on a
blocking call.
Anyway a well designed db would avoid the problem entirely.
Do you know if anyone tried web2py on pypy [http://pypy.org] ?
Hi.
While writting an application bumped into partial translation of russian
language.
Updated file attached. It is from welcome.py application, no my app specific
strings present.
Regards
Alexey
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or
Hello Paul,
I´d be happy helping putting up a Linux box for web2py. I use CentOS as
my distribution, but if needed it should not be a big problem setting it
up on Ubuntu either.
Kenneth
Hi all,
Sounds like there's a little momentum in this :-)
Here's what I can contribute to the party:
Thank you!
Importantly, although it is very convenient to have these values
serialized, it is simple to get around this jQuery imposed limitation (bug).
Miguel
On Tue, Aug 24, 2010 at 4:02 AM, mdipierro wrote:
> well... it is a bug not not in web2py, in jQuery:
>
>
> http://www.johnnycode.com/bl
I just found out that you can actually share sessions with other apps
by adding this to your model:
session.connect(request, response, masterapp='myapp')
That solved the problem of having to authenticate separately for each
app.
On Aug 24, 11:26 am, huimies wrote:
> Hi,
>
> What are the latest
thanks Massimo,
that's the solution,
works under windows and probably will also work under Linux, I'll try.
cheers,
Stef
On 24-08-2010 04:43, mdipierro wrote:
> It does not hang. It starts the server. The server blocks. If you want
> to start the server is a new thread:
>
> import os, sys, threa
On 24-08-2010 07:05, Johan wrote:
> Is it possible to post a free version of this _as it is_ ?
> Some of us my find it very useful.
> Or even, a version without the wysiwyg, if that's the problem.
I'll do my best and will try to make a first alfa release by the end of the
week.
cheers,
Stef
Somebody here did. They found it works but there was a proliferation
of open files. We never got to the bottom of this.
On Aug 24, 4:55 am, Michele Comitini
wrote:
> 2010/8/24 mdipierro :> P.S. In the end the bottle
> neck is ALWAYS database access.
>
> true! many driver implementations do not r
thanks. in trunk soon.
On Aug 24, 5:23 am, Alexey Nezhdanov wrote:
> Hi.
> While writting an application bumped into partial translation of russian
> language.
> Updated file attached. It is from welcome.py application, no my app specific
> strings present.
>
> Regards
> Alexey
>
> ru-ru.py
> 6K
jquery serialize also does not support type=file. If you have a way to
get around these, please let me know.
On Aug 24, 5:35 am, Miguel Lopes wrote:
> Thank you!
> Importantly, although it is very convenient to have these values
> serialized, it is simple to get around this jQuery imposed limitat
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You
cannot update or delete the results of a JOIN': '"обнови" е
незадължителен израз от вида "field1=\'нова стойност\'". Резултатите
от JOIN не могат да се обновяват или изтриват.',
'%Y-%m-%d': '%Y-%m-%d',
'%Y-%m-%d %H
I've missed the closing curly bracket.
On Aug 24, 4:21 pm, Vidul Petrov wrote:
> # coding: utf8
> {
> '"update" is an optional expression like "field1=\'newvalue\'". You
> cannot update or delete the results of a JOIN': '"обнови" е
> незадължителен израз от вида "field1=\'нова стойност\'". Резулт
I am glad you writing poems, but it is not the wall for comments :)
This is for issue invetigation.
On 24 авг, 07:33, KMax wrote:
> This is link to examplehttp://web2py.ru/test
> Click on 'show me' then on any in link of list and update. Second
> update will reflect changes in first time
> On 23
There is absolutely no need to serve up static web pages of a pure
Python web app or a WGSI app with a separate thread. It is
inefficient to use an inbuilt web server (of a Python web app) or
Apache (if WGSI used) to serve up static web pages using separate
threads. Both Lighttpd and Nginx are wel
I've been having a heck of a time trying to figure out how to make a
simple drop down list from a table in the database.
What I would like to do is have a drop down list populated by the
table information and when a person selects that item from the drop
down I want it to go to a page that pulls u
I didn't think a tuple of one element needed a comma, but I tried your
suggestion anyway. It had no effect on the issue. Can you verify that
you do not experience the same issue?
I made a sequence of screenshots demonstrating my test process:
http://yfrog.com/e3compvj
On Aug 23, 5:06 pm, mdipierr
Thanks.
But I found this method have a problem:
when I show the score after submit, the form's random data is changed.
And the form become empty, so the user can not see why he is wrong.
On 8月23日, 上午10時31分, mdipierro wrote:
> We need to clarify the goal. The goal is not to propose questions to
>
On 24 août, 01:20, mdipierro wrote:
> In Java a serverlet, as far as I understand, is a class which conforms
> to some API that allows it to serve one http request. Each instance is
> executed in its own thread.
Yes, but one instance can be executed by multiple threads at the same
time. It is one
ref: http://web2py.com/book/default/chapter/12#Pagination
In following code, there is two problem:
1. The 'next' button always show. And the len(rows) always = 2
2. I don't know how to proper show the {{=rows}} without last row, I
want to use the odd row background-color trick.
I wrote simliar c
# coding: utf8
{
'"update" is an optional expression like "field1=\'newvalue\'". You cannot update or delete the results of a JOIN': '"update" je voliteľný výraz ako "field1=\'newvalue\'". Nemôžete upravovať alebo zmazať výsledky JOINu',
'%Y-%m-%d': '%d.%m.%Y',
'%Y-%m-%d %H:%M:%S': '%d.%m.%Y %H:%M
CPython threading is not useful for (real) parallel processing
1) thread (with GIL) is good for *cpu bound processes* that do not
stop the main process while blocked by a system call (the intent is
similar to select/poll)
2) for really using multiple cores/cpus use something more
appropriated or ma
Please email to me as an attachment. Thanks.
On Aug 24, 8:21 am, Vidul Petrov wrote:
> # coding: utf8
> {
> '"update" is an optional expression like "field1=\'newvalue\'". You
> cannot update or delete the results of a JOIN': '"обнови" е
> незадължителен израз от вида "field1=\'нова стойност\'".
Is is set expects a python list or dict. If you want to a dropdown
from a list of records:
def get_services()
form = SQLFORM.factory(SQLField('name', label='Select a service',
requires=IS_IN_DB(db,'service.name',orderby=db.service.name))
return dict(form=form)
On Aug 24, 10:04 am,
On Aug 24, 10:36 am, pierreth wrote:
> On 24 août, 01:20, mdipierro wrote:
>
> > In Java a serverlet, as far as I understand, is a class which conforms
> > to some API that allows it to serve one http request. Each instance is
> > executed in its own thread.
>
> Yes, but one instance can be execu
2010/8/24 pierreth :
> Yes but a web2py server is running with only one process and using
> more web2py processes for serving the same web2py app will lead to
> synchronization problems. With processors having more and more cores,
> having a web server that cannot use them is not very fun. It is a
Not sure if this help, but you may want to take a look at this
Pagination class:
http://packages.python.org/web2py_utils/paginate.html
On Aug 24, 6:37 pm, dlin wrote:
> ref:http://web2py.com/book/default/chapter/12#Pagination
>
> In following code, there is two problem:
> 1. The 'next' button alw
Well, this is all interesting :) After reading Michele's email, I just
had to spend hours looking at Mercurial (& the like) as deeply as the
day would let me (I'm on PTO, so I can do this). I thought I had a
good idea about "distributed" version control system but, as it turns
out, a few surprises
Can't we at least have an acknowledgement that it is not necessary for
web2py to use a thread per request model and that web2py could instead
use an event model?
WSGI can be viewed as an evil conspiracy to force Python web apps to
follow the Apache thread per request model! Also with Apace mod_wsg
On Aug 24, 2010, at 11:29 AM, mart wrote:
> Well, this is all interesting :) After reading Michele's email, I just
> had to spend hours looking at Mercurial (& the like) as deeply as the
> day would let me (I'm on PTO, so I can do this). I thought I had a
> good idea about "distributed" version co
Lee's 'The Problem with Threads' link is at
http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf
There is in Lee at http://ptolemy.eecs.berkeley.edu/%7Eeal/
John Heenan
On Aug 25, 5:00 am, John Heenan wrote:
> Can't we at least have an acknowledgement that it is not necessary for
> w
that wasn't supported hmm
On Mon, Aug 23, 2010 at 6:47 PM, Michael Ellis wrote:
> Probably didn't. I encountered it while trying to clean up some view code
> that was looking messy. I'm in favor of supporting line continuation if at
> all possible or, if not, at least issuing an error message t
On Aug 24, 9:00 pm, John Heenan wrote:
> Can't we at least have an acknowledgement that it is not necessary for
> web2py to use a thread per request model and that web2py could instead
> use an event model?
Acknowledged.
John,
Tnx ... I'll keep this under my pillow ;-)
2010/8/24 John Heenan :
> Lee's 'The Problem with Threads' link is at
> http://www.eecs.berkeley.edu/Pubs/TechRpts/2006/EECS-2006-1.pdf
>
> There is in Lee at http://ptolemy.eecs.berkeley.edu/%7Eeal/
>
> John Heenan
>
> On Aug 25, 5:00 am, John Heen
Actually I would like to ask if bug tracking is used on web2py?
Code is available from either (btw Massimo how do you keep those 2 in
sync? just too curious :-) ):
a) googlecode (with hg)
b) launchpad (with bzr)
both have some sort of bugtracking ticket system I do not know which
one is best (or
I agree with you. web2py does not care. It is the web server that
decides. The question that started this thread was about the built-in
web server and it does follow the thread model.
On Aug 24, 2:00 pm, John Heenan wrote:
> Can't we at least have an acknowledgement that it is not necessary for
>
I am working on a application and very much want to continue the
development in Web2Py. However I need some help. Despite posting
several questions to the forum and getting the basics of the app to
work, I am unsure of the correct way of doing things (Controller -
view interactions, overall appli
Issue too obvious,
In function definition, select goes before crud.update, so before new
data updated old data selected.
Thank you.
for i in db(db.mytable.id > 0).select():
onclick=XML( "jQuery('#form"+str(i.id)
+"').slideToggle();return false;" )
form=crud.update(db.mytable,i.id,o
Yeah, thanks for the tip :) Above was really a question of
disagreement with that workingDirectory -> branch thing, simply
because IMHO, branches should be planned and managed following set
criteria and purpose (again that's just me). Of course, there are many
possible avenues, and it is possible I
How do you use dashes in controller names? I get errors, "Invalid
request".
On Tue, Aug 24, 2010 at 1:04 PM, mdipierro wrote:
> jquery serialize also does not support type=file. If you have a way to
> get around these, please let me know.
>
>
I've researched this a bit. Although I have not found an authoritarive
source, the "problem" is that Javascript cannot access file
On Aug 24, 2010, at 6:47 PM, Cory Coager wrote:
> How do you use dashes in controller names? I get errors, "Invalid
> request".
You can't. The URL parser allows only \w+ (alphanumeric or underscore).
On 24 août, 13:04, mdipierro wrote:
> when you do "python web2py.py" you do not start the wsgi app. You
> start the rocket web server which makes a number of threads. When a
> new http request arrives it is assigned to a free thread (or a new
> thread is created) and the wsgi is run in that thread
I don't understand. The link is broken at the moment.
Do you mean using only on thread and dispatching using the observer
pattern? Doing only one request at a time? It does not makes sense to
me. But I guess there is something I don't understand... Can someone
guide me?
On 24 août, 20:04, mdipier
As far as I can find, you have to set up web2py routes to do this --
it's pretty easy to do redirection using routes (using routes_in), but
I'm not aware of any way off-hand to do the equivalent of rewriting/
translation the URL for inbound requests (routes_out does to
translation).
This is someth
You can remove gluon/contrib/populate.py, which is almost 1 mb.
You can also run web2py with `python -OO web2py.py`, and after getting
the app to load all your modules (perhaps by accessing every page on
your app), close down the server. Then remove all the .py and .pyc
files, just leaving pyo fi
On Aug 24, 2010, at 8:03 PM, Kevin wrote:
> As far as I can find, you have to set up web2py routes to do this --
> it's pretty easy to do redirection using routes (using routes_in), but
> I'm not aware of any way off-hand to do the equivalent of rewriting/
> translation the URL for inbound request
As I know, at least this is manual's bug.
In the mannual, it use
next
But, it will raise error, I use this line instead
next
On 8月25日, 上午1時55分, Vidul Petrov wrote:
> Not sure if this help, but you may want to take a look at this
> Pagination class:http://packages.python.org/web2py_utils/paginat
Hi,
Actually, I am using these methods to work with money formating.
some tries with python-money and works very well
http://code.google.com/p/python-money/
and sometimes
import locale
locale.setlocale(locale.LC_ALL,('pt_BR','UTF8'))
>>> locale.currency(1090909, grouping=True)
'R$ 1.090.909,00'
I followed the example in the radiolog-example of using jqgrid but I
am doing something wrong I suppose.
Given the following model
db.define_table("teacher",
db.person,
Field("highest_qualification"),
Field("id_number",length=13),
Fi
I am using web2py's auto complete widget, and wonder whether the div
containing the options could fade out faster. At the moment it takes
about 4 seconds before the div fades out after the user selects an
option. Since the div hides the submit button, this is rather long.
Kind regards,
Annet.
If I do this:
db.friendship.to_user.represent = lambda id: db.auth_user[id].nickname
friends = crud.select(db.friendship, db.friendship.from_user ==
auth.user.id,
fields=['id', 'to_user'],
headers={'id':T('ID'),
'to_user':T('Friend')})
to_user.re
In a controller I defined a form:
form=SQLFORM.factory(Field('bedrijf',requires=IS_IN_SET([2,3,4,5,6,7],labels=['Fitnesscentrum','Fysiofitnesscentrum','Personal
Trainer','Dietist(e)','Voedingsconsulent(e)','Yogaschool'],zero=None)))
In the view I would like to display the label of the selected op
53 matches
Mail list logo