hello, if I share www.mysite.com/mypage, linkedin accepts it (can show a
preview) but if there is another level as in
www.mysite.com/blog/my-new_article then it refuses. It seems that this
doesn't happen if I try to share links with more levels in the url from
wordpress websites. Do you know ho
opening a new page was an hypothetical workaround
response.stream() is perfect, thank you
Marco
On Friday, August 23, 2013 2:30:36 PM UTC+2, Niphlod wrote:
>
>
>
> On Friday, August 23, 2013 10:49:07 AM UTC+2, Marco Prosperi wrote:
>>
>>
>> hello, I would li
hello, I would like to track the number of user download of some files on
database. The approach I've thought about is:
- when the user clicks on the filename link in the first view, myapp
redirects to a new page (a controller is called which register on the
database the new click) with 'your d
be comfortable with js events
> anyway. I think that your best shot is to put
>
> response.js
> ='jQuery('#910').slideToggle();ajax("{{=URL(r=request,c='downld',f='order_reload')}}",[],'910');jQuery('#910').slideToggle();
event must be hooked to an input that changes, not to a
> piece of the page ... let me understand: you have a page with a total that
> needs to be refreshed via ajax after having submitted with ajax the "add"
> or the "sub" function ?
>
> On Friday, August 2,
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
hello, I would like to update the total in the view below (bottom of the
message) when the user changes quantity. The following script works fine
(fixed value)
jQuery(document).ready(function(){
$(document).ajaxStop(function(){
jQuery('#910').slideToggle();
jQuery('#910').html('
hello, I would like to manage a newsletter from my web2py application. I'm
already able to send html mails from it but I have 2 questions:
- it's better to store my contacts in auth_user or in dedicated table? If I
use auth_user I would have all the features to let access to some parts of
my si
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
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
>
>
> 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
hi all, I would like to customize the register form so that an additional
field would appear (a boolean) to let the new user accept the service
conditions. I've tried to add the new extra field with
auth.settings.extra_fields[]
and it works. But the problem is how to present to the user the s
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
the first issue is solved by your suggestion, thank you. For the second I
still have problems:
I've created my application using 'welcome' application as template. So I
have in layout.html and @charset "UTF-8"; in
base.css.
The strange thing is that if I run the application locally on my Win
hi all, I'm trying to put a long string as content of a PluginMModal but I
face 2 problems:
- carriage returns in the string are not rendered (even if I put some \n in
the string)
- characters with accents (it is an Italian text) are not shown correctly
how can I solve these?
thanks in advance
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
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 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
--
hello, how can I change the default size of a 'text' field in a form? (at
first appearance, not dragging the corner)
thanks
Marco
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
,'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,
>
hi all,
still have problems with validators. Why a field defined so in db.py
..
Field('myfield','string',requires=[IS_NOT_EMPTY(error_message=T('my
custom message')),IS_IN_LIST(['first','second'])]),
..
doesn't show a drop down list in a SQLFORM but shows 'my custom
message' after submit if left
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','string'),
Field('data_inizio','datetime'),
hi all,
With web2py 1.88.* if you define something like
..
Field('myfield','string',requires=IS_NOT_EMPTY(error_message=T('my
message')),
..
you don't get 'my message' after submitting an empty a SQLFORM (yes, I
use if form.accepts...) but the default message. With older versions
of web2py there
hi all,
With web2py 1.88.* if you define something like
..
Field('myfield','string',requires=IS_NOT_EMPTY(error_message=T('my
message')),
..
you don't get 'my message' after submitting an empty a SQLFORM (yes, I
use if form.accepts...) but the default message. With older versions
of web2py there
Sorry, I mistyped: there is [it-it] and not [it_it] in my Firefox
On 24 Ott, 22:14, mdipierro wrote:
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:
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
hi all,
on my Italian localized Windows PC I have a problem with datetime form
fields. Putting this code in db.py (you can modify the welcome
application):
db.define_table('testata',
Field('campoa','string'),
Field('descr','string'),
Field('dt','datetime'))
db.define_table('righe',
hi all, I would like to add tooltips to field labels or to controls in
a crud form to show the name of the underlying database field. I've
seen some thread about tooltips in the past but not coming to a clear
end (and maybe in the meantime something has been added to web2py to
manage this easily th
hi all, I would like to use the crud forms (for their simplicity) for
a table with a lot of fields. The problem is that the standard layout
positions fields one above the other leaving the right half of my
screen empty (a waste of room) and the submit button very far from the
top of the page for t
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 post to this grou
hi all, is there a validator or an easy way to prevent a user to
delete a record if there are other records referencing it? Just to
make an example: consider the 'images' application in cookbook2.pdf. I
would like that the user cannot delete an image if there are comments
referred to it (it would
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,
Marco
--~--~--
hello everybody, I've created a little web2py application to manage
customers and contacts in my company. I've put the application on a
server and I've discovered some problems with rispect to i18n: for
some PC over the network some dates and strings appear with *** in
front of them but not if I c
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
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
Mar 24, 2009 at 3:17 AM, Marco Prosperi
> wrote:
>
>
>
> > 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 somethin
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?
Marco
--~--~-~--~~--
by=˜db.allineamento_erp.data_allineamento)
>
> >>> str(result)
>
> On Mon, Mar 23, 2009 at 4:29 PM, Marco Prosperi
> wrote:
>
>
>
> > thanks for the time you spent on my question but I don't have any
> > linebreak in my code after 'select'.
method db().select()
>
> regards
> iham
>
> On Mar 23, 2009, at 3:18 PM, Marco Prosperi wrote:
>
>
>
> > hi all, I would like to make a query to fetch records in reverse
> > order. The manual says to use ˜ by I get this error (everything works
> > if a elimina
hi all, I would like to make a query to fetch records in reverse
order. The manual says to use ˜ by I get this error (everything works
if a eliminate ˜). On web2py (maybe not after pasting the message in
googlegroups) the arrow indicating the problems point to ˜. Am I
missing something or is a pro
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 to web2py@googlegrou
hi, I used to rename \applications\myapp to
\applications\init to have myapp as the default application to be
started with web2py and I never had problems (up to 1.51, never tried
with 1.52->1.57).
This doesn't seem to work anymore on my localhost with versions 1.58
and 1.59. Did something change
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 post to this gr
hello ML,
in the readme file of the web2py source distribution I've found
examples to automatically timestamp when a record is created or
modified, but how to stamp the user id that created or modified the
record? Is there a simple way to do this as for the timestamp?
thanks in advance for hints
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
respo
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, my web2py application will interchange data with an
ERP system. On this system all the fields of type string contain only
capital letters. It would be nice for me if the values of type string
inserted in a web2py form could be directly converted in capital
letters. How to manage t
hello everybody, I would like to populate the sqlite database of a
web2py application by means of a python script. This script would read
data from a file or another relational database and insert records in
the web2py database (using pyodbc library and sqlite odbc driver for
windows).
My question
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
hello everybody, I would like to do something similar to
db.activity.activitytype.requires=[IS_NOT_EMPTY(),IS_IN_SET([ x for x in
db().select(db.activitytypes.code)] )]
to let the user be able to choose between values defined in another table
(activitytypes), not in a mymodel.py file (I will modi
52 matches
Mail list logo