Massimo, Thanks for your reply now I am working with new version 1.96.4 but
now as given in cas_auth.py
I have update my db.py with
from gluon.contrib.login_methods.cas_auth import CasAuth
auth.define_tables(username=True)
auth.settings.login_form=CasAuth(
urlbase = "http://127.0.0.1:8000/casapp
Its done there was some setting issues.
On Thu, Jun 23, 2011 at 1:16 PM, sagar nigade wrote:
> Massimo, Thanks for your reply now I am working with new version 1.96.4
> but now as given in cas_auth.py
>
> I have update my db.py with
>
> from gluon.contrib.login_methods.cas_auth import CasAuth
>
I used this feature like this:
db._common_fields.append(Field('request_tenant',default=auth.user_id,writable=False,readable=False))
so every user would have it's own data.
It seeams that IS_IN_DB is not aware of the request_tenant and also if you
mark a filed as unique it will be unique across
Thanks for the reply.
So what anyserver.py does with gevent is not recommended? It calls
monkey.patch_all() which patches threading to use green threads.
Is this something that ought to work but is just untested? web2py is
pure python so the monkey patching should make thread locals into
greenlet
So we have a legacy database that has a suboptimal structure, but we
cannot change it right now.
What we want is to create a business layer in-between web2py and this
database so that web2py thinks it is using a much better database
structure in order for the development in web2py to be what we wan
Hi,
has anyone running a reasonably current version of web2py running on
Jython 2.5.x? I need help with this.
>From reading the available information on the web I gained the
impression that Jython 2.5 is a fully supported platform. Wikipedia
says "web2py since v1.64.0 runs unmodified on Java with
How is behind it?
http://www.ekjaa.org/
Really good job!
massimo
Please open a ticket and I will fix it.
On Jun 23, 5:19 am, rif wrote:
> I used this feature like this:
>
> db._common_fields.append(Field('request_tenant',default=auth.user_id,writab
> le=False,readable=False))
>
> so every user would have it's own data.
>
> It seeams that IS_IN_DB is not aware
The test is easy:
def index():
import time
from gluon import current
print current.request.uuid
sleep(10)
print current.request.uuid
return 'done!'
call this action twice from console within less then 10 seconds from
each other what is the output?
if it looks
A
B
A
B
than
I have not tried in some time.What errors do you get?
On Jun 23, 3:50 am, Richard wrote:
> Hi,
>
> has anyone running a reasonably current version of web2py running on
> Jython 2.5.x? I need help with this.
>
> From reading the available information on the web I gained the
> impression that Jytho
Update of the app:
Changelog
110623
- generating MD5Sum with hashlib for uploaded files
- little design change
2011/6/23 Richard
> Hi,
>
> has anyone running a reasonably current version of web2py running on
> Jython 2.5.x? I need help with this.
>
>
Hello Richard,
Yes, I did a try but I didn't wanted to go very far with that. I was just
curious about giving it a try.
I had a problem with the database s
On Thursday, June 23, 2011 7:15:34 AM UTC-4, DanielB wrote:
>
> Another problem I had with CRUD forms in my case is that I really want
> to make the if .accepts() call myself so that I can then call the
> business layer with the database related stuff, but it seems the CRUD
> forms do this call
I'm using custom forms in my views using this format:
{{=form.custom.widget.first_name}}
I'd like to use HTML's placeholder attribute to input tags: e.g.,
Today: what are the ways to enable this? Obviously happy to drop the
{{=form.custom.widget.first_name}} format and use something else.
Tomor
Hello,
In order to get the proper tabs to render the validators message in case
they have been triggered I would like to know if I use response.write(TABS
INDEX) could be a option??
Here my set up :
*VIEW*
@import
"{{=URL('static','plugin_added/jquery-ui-1.8.9.custom/development-bundle/themes/b
form.element(_id='...')['_placeholder']='...'
On Jun 23, 9:24 am, Carl wrote:
> I'm using custom forms in my views using this format:
> {{=form.custom.widget.first_name}}
>
> I'd like to use HTML's placeholder attribute to input tags: e.g.,
>
>
> Today: what are the ways to enable this? Obviousl
Hi Cliff,
the id field is handled as a special case inside SQLTABLE and the
linkto can only affect the _href portion of the anchor (A helper), not
the visible part.
But you can still do it:
rows=db(...).select(...)
t=SQLTABLE(rows)
for n,row in enumerate(rows):
t[1][n][0][0] = A('Edit',_href=U
is this possible?
how would you implement a change to make it work?
thanks
I don't think you want to call response.write in your controller -- it
appends text to the response body, so you would be adding the text before
the rest of the response body is rendered by the view. You also shouldn't
need to call response.write from within the view, because you can just do
{{
Hello Anthony,
I can't use a var like you suggest since it popup in the component for
noting...
I am using session.MYVAR that seems to work... But I don't find the way to
get session vars in jQuery I try like this :
$(function() {
var $tabs = $( "#tabs" ).tabs();
var test1 = "{{=session
http://www.ekjaa.org/Ekjaa/about/team_Members
On Jun 23, 9:03 pm, Massimo Di Pierro
wrote:
> How is behind it?
>
> http://www.ekjaa.org/
>
> Really good job!
>
> massimo
A couple other methods:
1. In the controller or view:
form.custom.widget.first_name.update(_placeholder="first name")
or
2. Customize the db.yourtable.first_name widget:
db.define_table('yourtable', Field('first_name',
widget=lambda field,value: SQLFORM.widgets.string.widget(field, va
thanks.
feels right to have this data in the view but I can see the advantage
of 'declare once' in the model.
I agree Anthony, a solution could be baked into web2py as 'label'
already has been. html5 is here and adoption is pretty good thanks in
large part to webkit.
On 23 June 2011 17:04, Anthon
On Thursday, June 23, 2011 11:19:16 AM UTC-4, Richard wrote:
>
> Hello Anthony,
>
> I can't use a var like you suggest since it popup in the component for
> noting...
>
I'm not quite sure what you mean. Presumably you could add some logic to the
controller or view.
>
> I am using session.M
On Thursday, June 23, 2011 12:19:06 PM UTC-4, Carl wrote:
>
> I agree Anthony, a solution could be baked into web2py as 'label'
> already has been. html5 is here and adoption is pretty good thanks in
> large part to webkit.
>
Rather than a specific argument just for 'placeholder', it should be
po
On Thursday, June 23, 2011 12:19:06 PM UTC-4, Carl wrote:
>
> I agree Anthony, a solution could be baked into web2py as 'label'
> already has been. html5 is here and adoption is pretty good thanks in
> large part to webkit.
>
Rather than a specific argument just for 'placeholder', it should be
po
Is this a web2py site? Very nice. One comment: How Ekjaa works sliding
tool moves a bit fast for me to read, and doesn't pause
when my mouse is over it.
Mike
They say here it is made with web2py:
http://harshasmukherjee.wordpress.com/2011/06/23/fight-for-the-sight-of-our-website/
I checked it includes web2py_ajax code. It is really well done.
On Jun 23, 11:38 am, mikech wrote:
> Is this a web2py site? Very nice. One comment: How Ekjaa works sliding
On Thursday, June 23, 2011 12:38:29 PM UTC-4, mikech wrote:
>
> Is this a web2py site?
Yes, you can tell if you look at the meta tags in the html head. The http
response also includes x-powered-by=web2py.
Ok I see, I am getting '0' for example... I need to get rid of ''...
Thanks...
Richard
On Thu, Jun 23, 2011 at 12:21 PM, Anthony wrote:
> On Thursday, June 23, 2011 11:19:16 AM UTC-4, Richard wrote:
>>
>> Hello Anthony,
>>
>> I can't use a var like you suggest since it popup in the component f
gotcha. something more open-ended.
On 23 June 2011 17:29, Anthony wrote:
> On Thursday, June 23, 2011 12:19:06 PM UTC-4, Carl wrote:
>>
>> I agree Anthony, a solution could be baked into web2py as 'label'
>> already has been. html5 is here and adoption is pretty good thanks in
>> large part to we
can you explain more?
On Jun 23, 10:03 am, blackthorne wrote:
> is this possible?
> how would you implement a change to make it work?
>
> thanks
http://news.netcraft.com/archives/2011/06/22/startssl-suspends-services-after-security-breach.html
This is the first time I have really tried to deploy web2py to a production
server, so I'm going to need some help. What I want to do is run my web2py
app through Apache using a subdomain. Right now, I've got the server
configured as a LAMP server using the default Ubuntu configuration because
Download and uncomprss (or just install ) the python-web2py package
available in Debian and Ubuntu repositories, and take a look to the
README.Debian file available at /usr/share/doc/python-web2py. There is
a howto explaining exactly how to do it in Debian distribution and its
derivatives.
Regards
I copied the web2py folder over from the trunk, since that's the version I
developed the app from. I cannot find the file you describe in the trunk
version of web2py. A lot of the config files I see around the web involve
putting web2py at the root of the server. What I wanted to do (and I don't
Hi Pierre,
thanks for replying. I remember that I already stumbled upon the blog
page you mention before I posted my question on this list. I admit
that I didn't read it in depth back then. But I took as a good sign
that you wrote in your final line: "Everything works fine and web2py
runs with Jyt
Is it possible to change the foreground color in the web2py Shell? It is
something like orange. Orange on a white background is very hard to read .
Martin
I need help trying to create a custom widget;
I want to create a phone-number widget
I want it to only accept text in (800) 555-1212
I am not sure how to do this.
Any ideas would be greatly appreciated.
I am thinking of developing this for scalability on the cloud.
What features do we currently have for this issue?
What would be the best approach to handling concurrent requests? In
other words, I want to scale on the cloud base on instances of web2py
running off of the same data.
I think this i
That is sweet!
Please point me to the documentation. Is it the docstring in the
code?
On Jun 23, 10:58 am, DenesL wrote:
> Hi Cliff,
>
> the id field is handled as a special case inside SQLTABLE and the
> linkto can only affect the _href portion of the anchor (A helper), not
> the visible part.
On Thursday, June 23, 2011 3:47:14 PM UTC-4, mweissen wrote:
>
> Is it possible to change the foreground color in the web2py Shell? It is
> something like orange. Orange on a white background is very hard to read .
In the /* Shell */ section near the bottom of
/applications/admin/static/css/
The file is not in web2py sources but in the Debian package . There is not
problem in doing what you want
El 23/06/2011 21:23, "Ross Peoples" escribió:
On Thursday, June 23, 2011 4:15:59 PM UTC-4, Cliff wrote:
>
> That is sweet!
>
> Please point me to the documentation. Is it the docstring in the
> code?
SQLTABLE inherits from TABLE, which is a web2py html helper object, so the
usual server-side DOM stuff applies -- see
http://web2py.com/
Hi Massimo,
this is my setup:
- latest stable web2py version R-1.96.4 (hg commit #2032), clean
checkout from repo
- Jython 2.5.2
- set CLASSPATH=\path\to\jar\sqlitejdbc-v056.jar;%CLASSPATH%
- jython web2py.py -a pwd --nogui -p80 -f \path\to\web2py-src-dir
This is the console output:
No handlers
I think that when you add css files via response.files
the output should include a '/>' rather that '>'
xhtml requires all tags to be closed; while other doctypes are less strict
I think its good practice to close all tags.
Anyone disagree?
Are you using the current version of web2py? The code that generates the
link tag for css files appears to close the tag with a '/>', as you suggest.
Anthony
On Thursday, June 23, 2011 4:49:47 PM UTC-4, David J wrote:
> I think that when you add css files via response.files
>
> the output sho
Strange
I am running trunk, but I think the version I checked was 1.93 perhaps.
Let me see when that was added.
Thanks for the update I didnt notice that.
On 6/23/11 5:14 PM, Anthony wrote:
Are you using the current version of web2py? The code that generates
the link tag for css files appear
This patch was applied?. I'm interested in this function.
Hi web2pyers:
the TAG helper is very useful, but, it's any way to get the 'value' of the
attribute from an element?
Something like:
in that scenario, it is possible to get 'value' using just the TAG helper?
I would appreciate your suggestions.
Thank you in advance
Hmm, on Google Code, looks like the '/>' has been there at least since Dec
2009 (v. 1.77) -- it doesn't go back any further.
On Thursday, June 23, 2011 5:25:22 PM UTC-4, David J wrote:
> Strange
>
> I am running trunk, but I think the version I checked was 1.93 perhaps.
> Let me see when that w
>>> mytag=TAG.element('xyz', _attr='value')
>>> print mytag.attributes['_attr']
value
>>> print mytag.components[0]
xyz
Anthony
On Thursday, June 23, 2011 5:50:06 PM UTC-4, w2padawan wrote:
> Hi web2pyers:
>
> the TAG helper is very useful, but, it's any way to get the 'value' of the
> attribu
Note, the same thing works for any HTML helper, not just the TAG helper.
On Thursday, June 23, 2011 6:21:37 PM UTC-4, Anthony wrote:
> >>> mytag=TAG.element('xyz', _attr='value')
> >>> print mytag.attributes['_attr']
> value
> >>> print mytag.components[0]
> xyz
>
> Anthony
>
> On Thursday, Jun
what do you think of this?
http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=elenin;orb=1;cov=0;log=0;cad=0#orb
the possibility of loading a custom response.flash in a plugin_wiki
page so that plugin_wiki users can also define this flash message for
a page if they want to.
On Jun 23, 5:43 pm, Massimo Di Pierro
wrote:
> can you explain more?
>
> On Jun 23, 10:03 am, blackthorne wrote:
>
>
>
> > is this pos
Hi
Thanks all for the nice features in 1.96.
Where can I find more information about these changes?
1.96.1 - "from gluon import *" imports in every python module a
web2py environment...
Is this expected to have any significant performance degredation?
1.96.1 - No more need for local_import
loc
Actually, even easier, you can just do mytag['_attr'] and mytag[0].
On Thursday, June 23, 2011 6:21:37 PM UTC-4, Anthony wrote:
> >>> mytag=TAG.element('xyz', _attr='value')
> >>> print mytag.attributes['_attr']
> value
> >>> print mytag.components[0]
> xyz
>
> Anthony
>
> On Thursday, June 23,
At startup do you get:
zxJDBC support is experimental
or
no zxJDBC driver
or None.
Did you install the zxJDBC sqlite driver? It does not come with
Jython.
On Jun 23, 3:41 pm, Richard wrote:
> Hi Massimo,
>
> this is my setup:
>
> - latest stable web2py version R-1.96.4 (hg commit #2032), clean
I just saw a prezo on Now today: http://nowjs.com/
interesting, but Idon't see that hit the earth in the animation.
2011/6/23 António Ramos
> what do you think of this?
>
> http://ssd.jpl.nasa.gov/sbdb.cgi?sstr=elenin;orb=1;cov=0;log=0;cad=0#orb
>
>
--
http://martin.tecnodoc.com.ar
>
> 1.96.1 - "from gluon import *" imports in every python module a
> web2py environment...
> Is this expected to have any significant performance degredation?
I dont think so,
> 1.96.1 - No more need for local_import
> local_import has the reload=True feature. How does this work now?
from
Why doesn't generic.html beautify when len(vars)==1? When I send in one
record, I'd like it to display beautified.
{{if len(response._vars)==1:}}
{{=response._vars.values()[0]}}
{{elif len(response._vars)>1:}}
{{=BEAUTIFY(response._vars)}}
{{pass}}
I do not oppose to the change. Anybody else pros or cons?
Massimo
On Jun 23, 7:10 pm, pbreit wrote:
> Why doesn't generic.html beautify when len(vars)==1? When I send in one
> record, I'd like it to display beautified.
>
> {{if len(response._vars)==1:}}
> {{=response._vars.values()[0]}}
> {{elif
I assume it was designed not to call BEAUTIFY with a single item so you
could use generic.html to display a "real" page (i.e., not just for
development). BEAUTIFY isn't ideal for that because it displays the key for
each item in _vars to the left of the rendered objects. Maybe it could test
to
I wrote a game using Pyjamas that I have on a web2py server. I'm
currently trying to set it up so 2 players can play against each other
from different computers/clients.
Each player has an account they use to access the game, so there is
user info the server can use if that's needed. Is it possi
I am also interested, would help me on the new version of PowerTable plugin.
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
On Thu, Jun 23, 2011 at 6:48 PM, Martin.Mulone wrote:
> This patch was applied?. I'm interested in this function.
Me too.
I want it.
67 matches
Mail list logo