The code is being passed by the problem is here
def persona():
form=crud.create(db.persona)
form.vars.ficha=request.vars.ficha
because the crud.create does accept inside therefore the form is
processed before you set form.vars.ficha. You can do insetad:
controller1:
form=crud.create(db.
Hi!
I'm trying to pass a variable between forms using just the post method
but it still accepts the GET method. It's this possible? My code
follows:
controller1:
form=crud.create(db.familia)
if form.accepts(request.vars,session):
redirect(URL(r=request,f='persona',vars=dict(ficha=request.
The @service.json and @service.xml exist but you do not need them. For
example if you have
def example():
return dict(a=[1,2,3],b=['Hello','World'])
you can cal this with
http://.../example
http://.../example.html
http://.../example.load (html but no layout)
http://.../exampl
In the page/meta-code you can do
response.meta.keywords='.'
response.meta.description='' etc.
they will find their way into the header of the page automatically
On Jul 19, 9:14 pm, rochacbruno wrote:
> As a Brazilian I agree with Julio, BTW I'm using the title field to
> create a custo
I have an error in my latest post.
{{=plugin_wiki.widget('jqgrid',db.yourtable,colnames=[.])}}
The jqGrid widget has a button in bottom-left corner that opens a
popup search box. It is less user-friendly than datatable but allows
more precise construction of search criteria and works via ajax
On Jul 20, 1:58 pm, Michael Toomim wrote:
> Thanks! I tried rebooting the OS. Now my resources seem ok (but I
> didn't check before the reboot):
>
> Files used: 1376 out of 75556
> Mem used: 580mb out of 796mb
> Swap used: 0
> CPU: 88-99% idle
>
> And I know longer see the "Exception occurred"
Thanks! I tried rebooting the OS. Now my resources seem ok (but I
didn't check before the reboot):
Files used: 1376 out of 75556
Mem used: 580mb out of 796mb
Swap used: 0
CPU: 88-99% idle
And I know longer see the "Exception occurred" or "IOError" messages,
however I DO still see "Premature end
On Jul 20, 1:11am, Jonathan Lundell wrote:
> On Jul 19, 2010, at 10:05 AM, Timbo wrote:
>
> > It's defaulting to text/html since it's not actually sending a file.
> > This is a section of the HTTP spec that I missed.
> >http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.htmlsays that no
> > entity
Hello, I found a video once that showed how to do REST and returning a
view as html or json or xml just by putting @json or @xml over the
method.
Also I was looking for the video where it shows you have to change the
html by using a free html template taken from some template site.
If anyone kno
On Jul 20, 12:01 pm, Michael Toomim wrote:
> I'm getting errors like these in my apache error logs:
>
> [Mon Jul 19 18:55:20 2010] [error] [client 65.35.93.74] Premature end
> of script headers: wsgihandler.py,
> referer:http://yuno.us/init/hits/hit?assignmentId=1A7KADKCHTB1IJS3Z5CR16OZM4V...
>
And after a while apache completely freezes.
On Jul 19, 7:05 pm, Michael Toomim wrote:
> This message about "bucket brigade" is also appearing in the apache
> error log:
>
> [Mon Jul 19 19:01:53 2010] [error] [client 183.87.223.111] (9)Bad file
> descriptor: mod_wsgi (pid=7940): Unable to get buc
As a Brazilian I agree with Julio, BTW I'm using the title field to
create a custom index.
however it would be better if we had the option to include custom
fields, that way we could delete the title field, and create how many
custom fields as we need for a page.
In my case, I am migrating my Bl
This message about "bucket brigade" is also appearing in the apache
error log:
[Mon Jul 19 19:01:53 2010] [error] [client 183.87.223.111] (9)Bad file
descriptor: mod_wsgi (pid=7940): Unable to get bucket brigade for
request., referer:
http://yuno.us/init/hits/hit?assignmentId=1WL68USPJR0HY1ENS50GN
I'm getting errors like these in my apache error logs:
[Mon Jul 19 18:55:20 2010] [error] [client 65.35.93.74] Premature end
of script headers: wsgihandler.py, referer:
http://yuno.us/init/hits/hit?assignmentId=1A7KADKCHTB1IJS3Z5CR16OZM4VLSQ&hitId=1NAV09D0NWNU2X87QR3I6RXXG0ER8N&workerId=A37YC0D90
Hello,
In my opinion title should stay, specially for us Brazilians that use lots
of accented letters on titles, and also it should be displayed by default as
H1 on the top of the page, then it would have more meaning.
Just my 2 cents,
Julio Monteiro
On Mon, Jul 19, 2010 at 6:32 PM, mdipierro w
On Jul 19, 2010, at 4:28 PM, Timbo wrote:
> Whoa back up. Rocket doesn't set the content-type at all, web2py
> takes care of that (streamer.py, line 63). Actually, Rocket will send
> on whatever headers it gets, I think Cherrypy was a little more
> selective, which may be one reason the Rocket
Whoa back up. Rocket doesn't set the content-type at all, web2py
takes care of that (streamer.py, line 63). Actually, Rocket will send
on whatever headers it gets, I think Cherrypy was a little more
selective, which may be one reason the Rocket switch would let this
show up.
W.R.T. the slow req
Thanks a lot . Just for learning , i ve seen that other users have
allready used this DATATABLE table solution , plus it has a very
wonderfull feature '''Search with a few letters''' . Does the new
cube2py offers the same functionality ?
Thanks again . Now i have to pass data from the form to pdf
I could remove the title. You have a point. Anybody opposed?
On Jul 19, 3:36 pm, Chris S wrote:
> I've been looking through cube2py and just can not figure out what the
> "Title" field for a wiki_page is used for.
>
> The slug is used when:
> -referencing a link
> -generating the URL (match again
I do not understand this either. They are different cookies.
On Jul 19, 3:14 pm, weheh wrote:
> Aha! Found it! I'm using jQuery tabs and wanted to test out the
> persistent tabs feature. That uses cookies. The expiration on the tabs
> cookie somehow is wiping the web2py cookie with it. Doesn't se
I've been looking through cube2py and just can not figure out what the
"Title" field for a wiki_page is used for.
The slug is used when:
-referencing a link
-generating the URL (match against slug)
The title is used:
-In the auto generated History page
So why not just always refer to a page by
Looking at your code, you are using the widget from here and not
plugin_multiselect:
http://www.web2pyslices.com/main/slices/take_slice/70
I will take a look at this.
On Jul 19, 2:53 pm, mdipierro wrote:
> I have not tried your yet. I have been using the muliselect in
> plugin_wiki with 1.81.4 w
Ok, I got it to work with plugin_wiki...
Had a little hard time to figure out how to install the plugin...
I look forward to testing jqgrid ;-)
Jonhy
On 2010-07-19 15:53, mdipierro wrote:
I have not tried your yet. I have been using the muliselect in
plugin_wiki with 1.81.4 without problems
Aha! Found it! I'm using jQuery tabs and wanted to test out the
persistent tabs feature. That uses cookies. The expiration on the tabs
cookie somehow is wiping the web2py cookie with it. Doesn't seem right
to me ... why aren't they segregated? Anyway, that's what's going on.
Try setting up a tabs
Thanks for the quick response, Massimo.
I checked the cookie id and it's getting blasted away. Somehow, the
session_id_myapp is changing. Don't know why as I don't know what I've
done to change it. I am setting other session variables, but never
touched the session_id_myapp variable.
I'm running
Yes this is nice, but I thing this is better approach:
in controler:
def getResults():
.
.
return something
in view:
{{=LOAD('sniffer','getResults',ajax=True)}}
Therefore this do not solve my problem :D Actually my previous idea
(periodically update) was bad. Do web2py have capabilities to
Hello ,
I'm trying to understand how load_action works in plugin_wiki.
I thought I had to put something like :
``
name: load_action
action: index
controller: grille
ajax: True
``:widget
Yet it renders a template of URL(a,c,f) over a first template... would
have been so nice ...
Is there any chanc
I have not tried your yet. I have been using the muliselect in
plugin_wiki with 1.81.4 without problems.
Massimo
On Jul 19, 2:15 pm, Jean-Guy wrote:
> You don't get the "value not in database" when you select more the one
> element??
>
> Here I can't submit here.
>
> I didn't follow to much the
You don't get the "value not in database" when you select more the one
element??
Here I can't submit here.
I didn't follow to much the last weeks what is cube2py exactly. My
understanding is that it is a demo app that emulate a wiki??
Jonhy
On 2010-07-19 15:00, mdipierro wrote:
I do not se
Thanks a lot!!!
After some trials i noticed that request.vars.upload is a stream connected
to the file and i found out another solution. Tomorrow I'll try to do how
you suggested,
bye!!
2010/7/19 mdipierro
> if you use
>
> form=SQLFORM(db.my_images)
>
> or
>
> form=crud.create(db_myimages,
horrible. What is the bug?
On Jul 19, 1:34 pm, "mr.freeze" wrote:
> Hit refresh and it should pull the updated style sheets.
>
> On Jul 19, 1:32 pm, Jean-Guy wrote:
>
> > What I have with Chrome under Ubuntu : attached
>
> > Jonhy
>
> > On 2010-07-19 13:15, Jonathan Lundell wrote:
>
> > > On Jul
I do not see any obvious problem anyhow... if you installed
plugin_wiki from cube2py you get all multiselect get automatically the
plugin and this works out of the box.
On Jul 19, 1:27 pm, Jean-Guy wrote:
> I attach a app built with 1.81.4 that make the problem...
>
> default/dropbselect = load
I strongly suggest you install plugin_wiki from cube2py and do
{{=plugin_wiki.widget(db.yourtable,colnames=[.])}}
It has much more funcitonality.
Massimo
On Jul 19, 1:14 pm, sarsar wrote:
> Hi
> I found inside brasilian web2py list that datatable plugin uses
> SQLtable and there
thank you very much.
2010/7/19 rāma
> Usually you create a function in the model so that it is available
> throughout the view and and controllers.
>
> On Jul 20, 1:57 am, Luis Díaz wrote:
> > how I can create your own functions, style MENU () or URL ()?
> >
> > I want to call them from any (co
:'(
shameful
Jonhy
On 2010-07-19 14:34, mr.freeze wrote:
ll the updated style sheets.
Hit refresh and it should pull the updated style sheets.
On Jul 19, 1:32 pm, Jean-Guy wrote:
> What I have with Chrome under Ubuntu : attached
>
> Jonhy
>
> On 2010-07-19 13:15, Jonathan Lundell wrote:
>
> > On Jul 19, 2010, at 9:45 AM, Jean-Guy wrote:
>
> >> I just install 1.81.4 and open the we
Hi
I found inside brasilian web2py list that datatable plugin uses
SQLtable and there is no labels for the fields . If it is true ( i
mean if i have understanded corectly the google translation) then
there is no possibility to do what i want .
So the question changes and becomes . I
Usually you create a function in the model so that it is available
throughout the view and and controllers.
On Jul 20, 1:57 am, Luis Díaz wrote:
> how I can create your own functions, style MENU () or URL ()?
>
> I want to call them from any (controllers, view) without import
> with local_import
how I can create your own functions, style MENU () or URL ()?
I want to call them from any (controllers, view) without import
with local_import
as they like web2py native code
--
Díaz Luis
TSU Analisis de Sistemas
Universidad de Carabobo
Hi,
I'm using web2py with Oracle 10 and I'm having a problem trying to
upload a file:
in db.py I have:
db.define_table('my_images',Field('name','string'),Field('image',
'upload'))
I have an html form whre the user chose wich file to upload. When the
form is submitted i do the following:
db.my_im
if you use
form=SQLFORM(db.my_images)
or
form=crud.create(db_myimages,formstyle='table3cols')
You do not need the manual insert. If you choose the manual insert it
should be
db.my_images.insert(name=[some_name],image=db.my_images.upload.store(request.vars.upload.file,request.vars.uplo
Thank you for the blazing fast response.
I didn't find that in the book hope its noted somewhere to be added
later.
Rāma
On Jul 20, 1:33 am, mdipierro wrote:
> IS_EMPTY_OR(IS_EMAIL())
>
> On Jul 19, 12:23 pm, rāma wrote:
>
>
>
> > Hi,
>
> > How do I get the form to validate right.
> > I want t
me gusta la idea de tener pestañas en mis diseños.
y no quiero hacerlas todas a mano.
entonces cree varios script que me facilitan el trabajo:
en layout.html:
{{ pestania = response.pestania}}
{{if pestania:}}
//-
IS_EMPTY_OR(IS_EMAIL())
On Jul 19, 12:23 pm, rāma wrote:
> Hi,
>
> How do I get the form to validate right.
> I want to validate an email field ONLY IF it is filled in. IS_EMAIL()
> doesn't meet my requirement as it enforces validation simply by
> submitting.
>
> IS_NOT_REQUIRED() validator? ;-)
Can you please check you cookie id? Does it change when you get logged
out? I am wondering if there is problem with saving cookie. Which os?
On Jul 19, 12:11 pm, weheh wrote:
> jquery.cookie.js is not the culprit. I ripped it out of my code and
> still have the auto-logout thing going. And in cas
Hi,
How do I get the form to validate right.
I want to validate an email field ONLY IF it is filled in. IS_EMAIL()
doesn't meet my requirement as it enforces validation simply by
submitting.
IS_NOT_REQUIRED() validator? ;-)
Rāma
Just came back to Italy. Sorry I could not stay longer.
On Jul 18, 11:02 pm, GoldenTiger wrote:
> Ok, errata then ? I've seen some things like that on the book, where
> can i inform of book erratas? code.google or book online?
>
> Max, are you still at EuroPython?
>
> On 18 jul, 13:10, mdipierr
I cannot reproduce the problem. Can you please post the model?
On Jul 19, 11:40 am, Jean-Guy wrote:
> Hello,
>
> I got "value not in database" helpers message when I select more then
> one entry of the dropbox... The problem is coming from the web2py recent
> update 1.80.1, 1.81.4. The same app w
It would be great to have an app like pastebin for web2py models,
possibily using some convention to allow cooperation, and organized by
sector.
On Jul 19, 1:51 am, Kenneth wrote:
> Here is the model för tracker_person_product that tracks sellings, if
> a person doesn´t have a entry in the tracke
On Jul 19, 2010, at 9:45 AM, Jean-Guy wrote:
> I just install 1.81.4 and open the welcome app with Google Chrome and the
> layout is pretty weird... With Firefox no problem.
What version is web2py.com running (and how does one find out?)? It looks OK to
me with Firefox, Safari & Chrome (OS X).
We have contacted them some time ago. They suggested we send an
application. The communication channel was very slow anyway.
On Jul 18, 3:09 pm, jelkner wrote:
> Did web2py ever consider joining the Software Freedom Conservancy?
> (http://conservancy.softwarefreedom.org/)
>
> I made a donation re
On Jul 18, 2:21 pm, Chris S wrote:
> Is there a better explanation of how RPX integrates with the native
> web2py now that it's included in trunk? I would very much like to
> read a little more on how this works.
>
> For example:
> *Can you use RPX in combination with local user registration?
Mr
On Jul 19, 2010, at 10:05 AM, Timbo wrote:
> It's defaulting to text/html since it's not actually sending a file.
> This is a section of the HTTP spec that I missed.
> http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html says that no
> entity headers (Content-* should be sent in a 304 instance)
jquery.cookie.js is not the culprit. I ripped it out of my code and
still have the auto-logout thing going. And in case anyone wonders,
auth.settings.expiration=86400 # 1 day.
This file: web2py.googlecode.com/hg/web2py_src.zip
should not be there. I will remove it.
On Jul 18, 10:49 am, dbb wrote:
> Massimo:
>
> what is the difference between web2py.googlecode.com/hg/web2py_src.zip
> and web2py.com/example/static/nightly/web2py_src.zip. Debebe
>
> On Jul 18, 9:29 am, md
I implemented login and decorated my controller with
@auth.requires_login() a long time ago and it's been working great.
But I was mucking around in some of the controller's code, and all of
a sudden, I'm not able to stay logged in any longer. I can login. I
can access the controller one time. But
It's defaulting to text/html since it's not actually sending a file.
This is a section of the HTTP spec that I missed.
http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html says that no
entity headers (Content-* should be sent in a 304 instance)
I think I can have a patch by this evening.
Howeve
Hello,
I just install 1.81.4 and open the welcome app with Google Chrome and
the layout is pretty weird... With Firefox no problem.
Jonhy
Hello,
I got "value not in database" helpers message when I select more then
one entry of the dropbox... The problem is coming from the web2py recent
update 1.80.1, 1.81.4. The same app with 1.79.2 no problem (I package
app from 1.80.1 and install it in 1.79.2).
Here my function code :
db.a
Try this:
form = auth()
form.element(_name='username')['_onfocus'] = "if ( this.value ==
this.defaultValue )
this.value = '';"
form.element(_name='username')['_onblur'] = "if ( this.value == '' )
this.value =
this.defaultValue"
On Jul 19, 3:50 am, Rohan wrote:
> I want to customize auth.login for
Hi Thadeus,
thank you very much for your answer once more.
I am really *very* surprised to see that a University professor in
Computer Science and Software Engineering does promote this kind of
software design...
Thadeus, would you like to send me a pointer to your "very long list
of dislikes fo
On Jul 18, 2010, at 4:10 PM, MikeEllis wrote:
> Here's the Header info from the long fetch on base.css:
>
> Request URL:http://192.168.253.105:8000/init/static/base.css
> Request Method:GET
> Status Code:304 Not Modified
>
> Request Headers
> Accept:text/css,*/*;q=0.1
> Cache-Control:max-age=0
>
Hi , i solved one of my problems , i changed texts inside the
datatable js file and now i have most messages in my language . It is
not correct procedure but it works for me . Normally i should have
obtain a file and instruct the module to use it . More details at
datatables' site "" INTERNATIONAL
> where does this kind of thing happen with web2py? Could you please
> specify what exactly are you writing about here? Does this mean the
> web2py database abstraction layer produces this kind of hackery
> instead of intersection tables on a many-2-many relation?
Consider the following schema.
d
Hi Thadeus,
I do not understand what you mean with
> Web2py is actually guilty of performing this same operation, however instead
> of commas, we use the pipe char '|'
where does this kind of thing happen with web2py? Could you please
specify what exactly are you writing about here? Does this me
Hi ,
I am looking at the http://www.datatables.net/usage/columns
documentation and i dont understand how i can pass some options to my
case . Mostly i am interested for sTitle and for Internationalisation
of the header elements . I want to display my titles and translated in
my language . Is it po
Web2py is actually guilty of performing this same operation, however instead
of commas, we use the pipe char '|'
The theory works like this
If you have the following
|1|23|4|55|15|
You can perform the following query to find the record with group id of 55
db(db.groups.like("%|55|%")).select()
I have an "interesting" problem here - in a given mysql database
scheme some sql wizard used comma-separated values in a text-field
and
with that values lookups have to be done. The data itself is simple
numbers like 1,34,25,66,78,134 and so on. So what I have is something
like this:
id | username
Now the question is "why?"
I don't see how it can just be the generation of the form, I am willing to
bet it is the session and CSRF tokens.
If someone has time, we need to test a couple of scenarios.
A) display a simple FORM
B) display a simple FORM, but do NOT include a form.accepts in the
con
I want to customize auth.login form and create an input field for
username/email like
using widget customizations {{=form.custom.widget.email}}, I get input
field like
is there any way to customizing auth.login form to generate the
desired form as specified above?
I tried us
One can even user examples hosted on web2py.com with same results as I
tested on my local machines.
simple temple rendering - no failed requests ##
c:\apache\bin>ab -n 100 -c 5
http://web2py.com/examples/template_examples/test_def
This is ApacheBench, Version 2.3 <$Revision: 65
I am taking http://techspot.zzzeek.org/?p=17 and making a benchmark_dal.py
and testing the results vs sqlalchemy.
So far it looks promising, the DAL seems to be much more efficient than
SQLAlchemy, and brick tons faster too.
This is good news for me, as it proves that the DAL is valuable... if on
72 matches
Mail list logo