with the following traceback:
Traceback (most recent call last):
File "/home/mlui/web2py/gluon/restricted.py", line 178, in
restricted
exec ccode in environment
File "/home/mlui/web2py/applications/user_annotation/models/db.py",
line 33, in
, SQLField('thread_l
google as well as the group for 'rate
widget' and 'ratings widget' gives no results. Is there something like
this already in web2py? If not, would you be so kind as to offer some
tips on how to implement it?
Thanks in advance!
Marco
--~--~-~--~~~---
t mouseover for each option. I will
post again if I extend this further.
For now I have another question. Right now this class is living in my
application's modules/widgets.py, and I am importing via
applications.appname.modules.widgets. Is this the right/sensible thing
to do?
Thank you to ever
any design
suggestions.
I include a sketch of my controller below for reference.
Thanks in advance.
Cheers
Marco
@auth.requires_login()
def rate():
item_id = request.args(0)
target = db.item[item_id]
# target not valid, redirect to summary
if not target: redirect(URL(r=request,
can I use LaTeX inside the wiki? I know that Massimo is an
academic and I saw one of his QCD apps had LaTeX embedded in the
webpages... there must be a way?
3. anything else you would suggest?
Thanks
Marco Gualtieri
--~--~-~--~~~---~--~~
You received this me
oper latex or would it be sufficient to be
> able to type latex in the wiki for formulas?
>
> On Sep 11, 3:43 pm, Marco wrote:
>
> > Hello,
> > I am a mathematician and not an experienced web programmer, but I
> > thought web2py was cool (I only know some Python) I
Could you indicate what you would like to accomplish with T3? Is the
current T3 webpage a good description? If so I could think about that
and make some suggestions. I didn't realize you were developing a wiki
on the same day that I am interested in one!
Marco
On Sep 11, 2:46 am, mdip
woudl be.
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
t;
> Massimo
>
> On Sep 11, 5:03 pm, Marco wrote:
>
> > Let me be a bit more precise:
>
> > It would be useful if latex snippets in each wiki page could inherit
> > macros and preamble information from the parent wiki page (perhaps
> > this makes no sense) or you
Il giorno mercoledì 2 dicembre 2009 05:07:25 UTC+1, Thadeus ha scritto:
>
> Yes, but that is not working :)
> routes_onerror = [
>('thadeusb/*', '/thadeusb/default/error'),
> ]
>
After 4 years, this still does not work...
routes_onerror = [
('myapp/*', '/myapp/default/fail'),
]
Always r
f the created entry and it is
right now throwing an exception instead.
This is for the Google App Engine developer environment of Web2Py.
marcos-mbp:google_appengine marco$
marcos-mbp:google_appengine marco$ python dev_appserver.py ../web2py-3
INFO 2014-08-04 15:47:46,373 sdk_update_checker.
with web2py, if I have a blob field defined as follows:
.
Field('pdf','upload', uploadfield='pdf_file'),
Field('pdf_file', 'blob')
.
How could I use PDF.js (https://github.com/mozilla/pdf.js/) to display the
file?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Docume
x27;,label='ecco'),
Field('pippo2','datetime'),
Field('pippo3','string'))
if form.accepts(request.vars):
id1=db.testata.insert(campoa=form.vars.pippo1,dt=form.vars.pippo2)
everything works fine with olds versions of web2py but I get a
validation error with recent ones on datetime field (it looks as if
web2py expects a date with a English format instead of the Italian one
Marco
Still doesn't work: I get an exception and, moreover, the popping up
calendar widget is in English and not in Italian (October instead of
Ottobre)
Marco
I use Firefox 3.6.3 on a Vista machine and Strumenti/Opzioni/Contenuti/
Lingue has [it_it] as first choice.
Web2py 1.87.3 complains about the dates' format while web2py 1.67.0 on
the same machine works correctly
On 24 Ott, 01:48, Michele Comitini wrote:
Sorry, I mistyped: there is [it-it] and not [it_it] in my Firefox
On 24 Ott, 22:14, mdipierro wrote:
message. With older versions
of web2py there is no problem (for example 1.167.2)
I think this is connected to the same problem noticed in my other post
'bug or backward incompatibility for datetime fields' on October, 23
Marco
message. With older versions
of web2py there is no problem (for example 1.167.2)
I think this is connected to the same problem noticed in my other post
'bug or backward incompatibility for datetime fields' on October, 23
Marco
here is the db.py file (it's a work-in-progress), the default.py (it's
a welcome app modification) and the movqta.html.
Look to default/movqta url
Marco
#
db.define_table('movtempi_mast',
Field('IDStaffatura','string'),
Field('fase
FORM but shows 'my custom
message' after submit if left empty?
thanks in advance,
Marco
,'second'])]
>
> should be just
>
> requires=IS_IN_LIST(['first','second'])
>
> if you require the value to be in a list, it cannot be empty. This
> will give you the dropdown.
>
> On Nov 7, 9:31 am, Marco Prosperi wrote:
>
> > hi all,
>
(it would be useful to get a warning message specifying
that the user has to delete the comments first)
thanks in advance,
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" gr
but can I manage warning messages for the user this way? I think could
be preferable something at model level
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To po
vance for hints,
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
asily that I'm not aware of).
thanks in advance for hints,
Marco
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email
modify the query above to
limit the number of values in IS_IN_SET to just the last dozen). Is it
possible or am I only using the wrong syntax?
thanks in advance
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
alse,t2.action('logout')],
['contatti',False,t2.action('index')],
['tipi attività',False,t2.action('create_tipoattivita')],
['agenti',False,t2.action('create_agente')]]
attivita=t2.display(db.attivita)
search=t2.se
e:
myproduct; mydescription; products.image.2d429188-
d1a0-4ca7-858e-787eeabf4d1a.jpg
How can I fill the 'image' field via odbc?
Marco
but if I have a myimage.jpg file
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
this cleanly?
thanks in advance,
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this g
AIL PROTECTED]> wrote:
>
> > > You can use the python string function
>
> > > myString.capitalize()
>
> > >http://www.python.org/doc/2.5.2/lib/string-methods.html
>
> > > I hope this is what you are after
>
> > > On Dec 1, 11:14 am, Mar
hello everybody,
how can I change the following function (defined in appadmin.py
controller) so that the downloaded file has tab separated values
instead of comma separated? Or do I have to change some settings
somewhere?
thanks in advance,
Marco
def csv():
import gluon.contenttype
hints
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
hello,
how to prevent web2py from auto check for upgrades? is there any flag/
parameter to set somewhere?
thanks, Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To po
omething change in web2py or what could I verify to
solve this?
thanks in advance for hints,
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, se
hello, how can I display a boolean field as a checkbox in a SQLTABLE?
thanks, Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email
problem with my Italian settings? thanks,
Marco
Error ticket for "X"
Ticket 127.0.0.1.2009-03-23.15-02-46.51e8621c-
fb62-423d-81a8-27058eccb348
Error traceback
Traceback (most recent call last):
File "gluon/restricted.py", line 97, in restricted
File "C:/web2py_win15
thanks for the time you spent on my question but I don't have any
linebreak in my code after 'select'. It appears in my post after
copying the error message from web2py and pasting it to googlegroups.
If I cancel the character ˜ everything works fine in my application
Marco
O
acter from there, then everything works fine
Marco
On 23 Mar, 22:52, Yarko Tymciurak wrote:
> Hello Marco -
>
> Try this and tell us what you get:
>
> $ python web2py.py -S crm -M
>
> >>> result=db().select( db.allineamento_erp.data_allineamento, \
>
> order
hi all,
I would like to put a button in one of my pages so that when the users
clicks it, a computation on the database get started. I don't know the
syntax I have to use. Probably something like:
click me
any hint? Or maybe there is a better approach?
Sorry but with
Crea attività
the function 'add_records' is never called
while with
crea attività
then 'add_records' is called and works (I can see it because it
creates a file)
maybe is this the wrong syntax?
Marco
On 24 Mar, 10:12, Yarko Tymciurak wrote:
> On Tue,
just a little change to make it work:
Crea attività
On 24 Mar, 13:05, Michal Jursa wrote:
> Yes, coz it cannot be called like this. The problem is not in web2py but
> in your page. You have to use proper javascript call. So the result
> should look like:
>
> Crea attività
>
> Then i think thi
No.. I'll read the manual of the notebook
On 24 Mar, 15:32, mdipierro wrote:
> [alt]126[release alt] should do the trick. no?
>
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post
em but not if I connect to the server from my PC. What
could I check/modify/move to solve this?
thanks in advance, Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post
hi all, how can I verify if there are users currently connected to my
web2py application? I just want to know if there is at least one. The
evolution of this question could be: how could I notify my app's users
that I will stop the application for maintenance?
thanks for hints,
and thus would never pass the validation.
What do I need to change?
Thanks and regards,
Marco
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email
ion should be quite frequent, is
there in web2py a more or less straightforward approach?
thank you,
Marco
--
>
>
> Maybe show what you tried. I would think you could make either the field
> label or comment (the comment appears after the input field) a link, and
> trigger the modal dialog with an onclick attribute or a jQuery event
> handler.
>
> Anthony
>
ok,
in models/db.py I have put (but the link
ser']= [
Field('accept_privacy','boolean',default=False,label=DIV('click me!',
_onclick='jQuery(#%s).fadeIn(); return false' % request.cid))]
Marco
On Tuesday, August 7, 2012 5:05:04 PM UTC+2, Marco Prosperi wrote:
>
>
>> Maybe sh
thank you for pointing that out. In this form it works (I've forced id=999
for PluginMModal in user.html)
_onclick="jQuery('#999').fadeIn(); return false'
On Wednesday, August 8, 2012 2:00:10 PM UTC+2, Anthony wrote:
>
> auth.settings.extra_fields['auth_user']= [
>> Field('accept_privacy
ter service. Is there something
already in web2py to manage this (maybe in auth)? It looks similar to
registration validation through e-mail only that clicking on the link in
the e-mail the user must be unregistered, not registered
thank you for hints
Marco
--
Hi everyone, i try not to ask here before googling my issues but so far
i haven't found solution for this one:
i have this in my model db.py
db.define_table('person',
Field('first_name'),
Field('last_name'),
Field('address'),
Field('phone'),
Field('email'),
Take a look on
http://www.web2pyslices.com/slice/show/1378/ajax-live-search-auto-complete
El Fri, 20 Apr 2012 23:28:15 +0100
Simon Pickles escribió:
> Does web2py have any built in support for country lists, the drop
> down list you use while entering an address?
>
> Thx
another approach might be
default=request.now, writable=False, readable=False
> requires=IS_EMPTY_OR(IS_DATE()))
>
> On Saturday, 21 April 2012 23:03:40 UTC+1, BlueShadow wrote:
> >
> > When I make a database table with a tate field for some reason it
> > is always required. but I need a date fi
I'll try asap!!
Ps. I'm in Love with web2py, ma hehehe.
Tnx!
Il giorno 07/mag/2012 06:18, "Yogesh" ha scritto:
> Marco, just export w2p file from the admin login of web2py.
> Then add the module normally on the windows machine..
>
> Magic of web2py hehe..
&g
hi all,
what could be a clean way to require login (if not already logged in) when
a user clicks on the submit button of a form?
thanks in advance for advice
Marco
hello, how can I change the default size of a 'text' field in a form? (at
first appearance, not dragging the corner)
thanks
Marco
the book [1] should be enough, very explicit and easy to understand,
plus this list is very helpfull too...
[1] http://www.web2py.com/book
> I start to study the web2py system. I understand the models and a
> little controllers.
> But now it is very difficult for me to understand the complex view
hi all, I would like to limit the width of a SQLFORM label so that the text
appears on more lines if it is too long. I've tried to put
label {max-width:200px;}
in base.css but without effect. Any suggestion?
thanks in advance,
Marco
--
hi all, I've put:
crud.settings.label_separator = ''
in db.py to avoid ':' in forms but it seems that this is not read by a
SQLFORM.factory form. Is there any way to circumvent this?
thanks in advance,
Marco
--
hi all, I'm putting a long text in a PluginMModal content but I face 2
problems:
- carriage returns of the text are not respected (also if I put some \n in
the string)
- characters with accents (it is an Italian string) are not shown correctly
which are the solutions?
thanks in advance
Marco
--
ks in advance for hints,
Marco
--
application locally on my WinVista
pc the accented characters are shown correctly in the browsser but on line
(hosted on webfaction) they are not (although I use the same browser). What
do I have to check?
Marco
On Thursday, June 28, 2012 12:47:56 AM UTC+2, Massimo Di Pierro wrote:
>
> 1) th
If I open the main page of my web2py application with web2py running on my
pc then accented characters are shown correctly but if I open the main page
of the copy of my application installed on webfaction server I see
mis-rendered accented characters (in both cases I use the same Firefox
brows
can you show the controller?, maybe it a mistake in the default.py
contoller defining
def company_create():
return dict()
El Wed, 9 Jan 2013 14:53:01 +
António Ramos escribió:
> I got this error in Manage Contacts Appliance
>
>
> invalid view (default/company_create.html)
> when crea
Apps are created in the /path/to/web2py/applications folder, and are
folders too, so you can delete them from that path.
Marco.
> Hi,
>
> I am new to web2py so probably I am doing something wrong. I used the
> wizard and (I think it was the wizard that did it) it created
Really nice!, this is going to my current project, thanks for sharing.
> http://jasny.github.com/bootstrap/
>
--
El Wed, 13 Feb 2013 06:26:41 -0800 (PST)
waqasiqbal.kny...@gmail.com escribió:
>
> i want to add asterik at the end of mandotry fields to show the user
> that you must have to fill that field . But the problem is that there
> is no html file for that and form is built on crude, how should i
> add
i think it should be:
number_of_records = db(db.countries.id).select().count()
haven't tried it, but you must have all the rows selected to count.
> Hi,
>
> i have this line of code:
>
> number_of_records = db().count(db.countries.id)
>
> i am receiving an error:
> near ";": syntax error
> (
aren't you missing the db. before table?
like
def something():
grilla = SQLFORM.smartgrid(db.table_1)
and then for the orderby statement should be:
def something():
grilla = SQLFORM.smartgrid(db.table_1, orderby=db.table_1.field)
that should work.
> Hello
>
> Suppose we have the f
Inicio del mensaje redirigido:
Fecha: Tue, 13 Nov 2012 15:27:38 -0300
Desde: Marco Mansilla
Para: web2py@googlegroups.com
Asunto: Re: [web2py] SQLFORM.smartgrid. This is a bug?
still you need to give to orderby the name of the field that you want
to order, even when the table has only one
Does anyone has any thoughts about Pylatte, so far it seems to be the
first Py3k supported web framework besides Pyramid
http://www.pylatte.org/
which is wreid to me is the fact that is considered the second in the
list and still lacks a lot of features, doesn't have an ORM or
equivalent...
--
This line here:
('ERROR','23502', 'null value in column "aboutid" violates not-null constraint')
it seems that you have set a validator to one of the hidden fields, and
since it doesn't seem to a have a default value either, then it's value
on submit is null and therefore rejected... could you sh
Well, to me it seems that DjangoCon has moved to PyCon... so, whatever,
we must have our Web2pyCon and stop trying to be heard by deft people...
PS: i still remember this and is awesome
http://www.youtube.com/watch?v=i6Fr65PFqfk
> Hi folks --
>
> I'm the program chair for PyCon 2013. I can see y
you must be logged in to get rid of the not authorized message, grid
and smartgrid verify session
> SOLVED: I forgot to have the define_table statement in the main part,
> otherwise the table is not defined.
> I still have trouble as I can'tedit the table. I get a flash response
> not authorized.
El Mon, 9 Jan 2012 00:08:09 -0200
Bruno Rocha escribió:
> Look this project
>
> https://github.com/kivy/python-for-android
>
> May be someone has time to spend trying to run web2py with this.
>
>
here's a little more info, looks nice
http://txzone.net/2012/01/introducing-python-for-android/
El Sat, 7 Jan 2012 00:46:16 -0200
Bruno Rocha escribió:
> Got a domain name! http://movu.ca
>
Awesome!, congrats!, and thanks for sharing it's a cool idea
Thanks a lot!
> http://pyvideo.org/video/714/web2py-ideas-we-stole-and-ideas-we-had
>
Hi,
Tested on:
Ubuntu 10.04.4 LTS
nginx-1.0.11
uwsgi-0.9.9.3
web2py 1.99.7
user=www-data
Hosted at Amazon EC2.
ubuntu@IP:/opt$ uname -a
Linux IP 2.6.32-342-ec2 #43-Ubuntu SMP Wed Jan 4 18:22:42 UTC 2012 x86_64
GNU/Linux
Pretty much downloaded the script and ran it. Installed nginx, uwsgi,
It seems to me that we maight have a moodle like plataform writen in
web2py!, good to know...
> Hi. I have been asked to buiild a web site with these features and
> requirements:
>
> -Content managment for universitary students and teachers
> Teachers will upload and edit course documents.
> -Stu
El Fri, 30 Sep 2011 14:14:00 -0700 (PDT)
pbreit escribió:
> https://tryflask.ep.io/
hmmm login is broken... "internal server error" =(
ieves or political ideology is offensive some how?... i
don't think there's a policy needed, should be implied that since this
is a community related to software/opensource/free software (since
web2py's components share different licences), most of us (not to say
all) are not interested on unrelated subjects... there are a lot of
groups on google where we can go and find everything we don't have,
need and will not have on this one.
Marco
ailure. So pick the one you are most productive in
> and focus on properly architecting your app. That scales.
Fair enough... scalability does not deppend on the language, framework,
tool, etc. On any project scalability deppends on design...
Python/Web2py will be scalable as long as your design itself is, else
it won't.
Marco.
k a link would be useful:
> http://smalltalkzen.wordpress.com/2011/02/01/a-secret-passion-and-your-choice-of-web-framework/
--
/* ****
Marco Antonio Mansilla Gutierrez, alias "Big"
Medios de contacto adicionales:
El Wed, 16 Mar 2011 16:15:25 -0700 (PDT)
Massimo Di Pierro escribió:
> I have isolated a minimal set of GAE SDK files that, if shipped with
> web2py, would allow to test locally and deploy on GAE from web2py
> admin without need to download the SDK separately (basically I deleted
> Django and Web
I've been wondering about it too, and for the same reasons, wouldn't be
possible to set a -reload parameter on development mode? or just a mode
that assumes it by itself, develmode or something like that.
Marco
> Hi,
>
> Just wondering if the admin application could off the
Déjà vu!
> http://www.microsoft.com/web/post/web-development-101-using-webmatrix
>
> layout, database, template language, helpers, intellisense, ...
>
> I have seen all this before... but where?.
--
/* ****
Marco A
El Thu, 24 Mar 2011 20:32:03 -0700 (PDT)
Kevin Ivarsen escribió:
> Good catch. I've made the edit.
>
> Cheers,
> Kevin
is there any bug on the book site?, i get an invalid request and ticket
on
http://web2py.com/book/
Marco.
mac_hash
> ImportError: cannot import name hmac_has*h
>
>
> ...now I cannot even start web2py, all was working well until I
> upgrade lastnight (obviously too soon :P)
That's odd, but i have an error too after update:
Any ideas?
starting browser...
ERROR:Rocket.Errors.Thr
My mistake, it was a trunk issue, now it's fixed, tanks a lot =)
> I believe that was a trunk Issue not a 1.96.1 (stable) issue.
> I also think that is now fixed in trunk. Can you try again?
>
> Massimo
>
> On Jun 2, 8:28 am, Marco Mansilla wrote:
> > El T
El Tue, 14 May 2013 12:33:51 -0700 (PDT)
BlueShadow escribió:
> Hi,
> I like to add comments for users to my app. Is there a plugin which
> does all the work for me or do I have to develop it myself? It would
> be awesome if moderators could edit or delete comments.
>
there is [0], but i think
field to take the id value...
when you define a username field, automatically auth asks for it
instead of email.
Marco.
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving email
El Wed, 5 Jun 2013 21:02:20 -0700 (PDT)
Massimo Di Pierro escribió:
> http://goodui.org/
>
Nice tips, liked too.
--
---
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
El Thu, 6 Jun 2013 16:07:41 -0700 (PDT)
Jose escribió:
> Hello
>
> I have the following
>
> def boolean_widget(field, value):
> return SELECT(
> OPTION('Si', _value=True),
> OPTION('No', _value=False),
> _name=field.name,
> _id='%s_%s' % (fiel
orted for python 2.6-2.7\n')
if os.environ.has_key("COVERAGE_PROCESS_START"):
try:
import coverage
coverage.process_startup()
except:
pass
gluon.widget.start(cron=True) "
What do I have to do?
Thank you in advan
Il giorno domenica 16 giugno 2013 15:49:43 UTC+2, Marco Ippolito ha scritto:
>
> Hi everybody,
> before I installed the binary version of web2py but didn't manage to make
> it starting as windows service.
>
> So I decided to install the source version of web2py.
> I ex
Hi Anthony,
thank you very much for your kind help.
Is there somewhere a step-by-step procedure for someone like me, at its
beginnig of his journey?
I added in the PATH environment variable all folders path but it still
doesn't work....
Marco
Il giorno domenica 16 giugno 2013 19:10:03
x27;910');
where:
def order_reload():
total=sum((qty*db.product(idx).price for idx,qty in
session.cart.items()),0.0)
return HTML(str(total))
then after the first increment of qty the total gets refreshed
continuously. How can I avoid this?
thank you in advance, Marco
p.s.: here is t
p to the ajaxstop event instead of the change event
> on the "quantity" field (as per your description on what is supposed to
> happen) ?
>
> On Thursday, August 1, 2013 7:25:10 PM UTC+2, Marco Prosperi wrote:
>>
>>
>> hello, I would like to update the total in
product both the quantity and the total changes.
I can't figure out how to correctly fire the total change. There is a
similar thread in this mailing on this subject list but without a useful
conclusion
Marco
On Friday, August 2, 2013 9:51:31 AM UTC+2, Niphlod wrote:
>
> uhm. the change
the solution (simple as a solution must be) is changing the 'cart_callback'
to update the entire (always little) . Sorry, you haven't passed the
test :-P
thank you for your time!
Marco
On Friday, August 2, 2013 10:22:23 AM UTC+2, Niphlod wrote:
>
> well, given that yo
1 - 100 of 274 matches
Mail list logo