I am not a redis expert and I don't know how web2py handles the interaction
with redis, either.
However the scenario could be, either you instantiate one or more new
connections for request or 'expired' connections are not closed.
I am for the former case, could you post few lines where redis is
The devil is in the details. I understand you store pages and some may have
a block_footer and some may not. If they do not have a block_footer, how
should the footer be determined? What is an index page?
I am making a guess:
record = db(query).select(db.page).first()
default_footer=cache.ram('
As after a new entry to the table does not move, while still entering one
entry?
--
---
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 email
to web2py+unsubscr...@google
Yes, the unix permissions on the filesystem are correctly set. I can su to
www-data and create, edit, read, and destroy all the files and directories
I want. But thru Apache -- nada.
I think I'll just toss this VM and start over. I'm thinking KVM would be
better than VirtualBox for this anyw
It's probably just a typo, but shouldn't there be a semi-colon after the
line that is "// WORKING" as a comment? You need to separate javascript
lines with semi-colons, except for the last statement in a function. (But
even there it doesn't hurt anything if you put one in.)
Get Firebug on Fir
I found the problem!
And the source was (of course) me.
The connexion class was defined as follows:
class Connexion(object):
rCMD = redis.Redis(host='127.0.0.1')
def __init__(self):
if not self.rCMD.exists('ConsistoPort'):
(...)
Which is
Thank you for letting us know. This will be useful to others.
On Thursday, 25 July 2013 10:28:07 UTC+2, dederocks wrote:
>
> I found the problem!
>
> And the source was (of course) me.
>
> The connexion class was defined as follows:
>
> class Connexion(object):
>
> rCMD = redis.Redis(host='127
Thanks Massimo,
Your guess is right, only all pages have footer, but let's say 90% of them
have the same block_footer, and other 10% have original, unique
block_footer, so I don't want to copy-paste content of first page with
is_index == True, but at the same time leave a possibility to define
I have a simple 1:N relation (I think its very common scenatio) as you can
see below. Now how can I create a query form SQLFORM.grid to show
'customer_person' table but view company_name in 'company' column instead
of ID? I tried to put this query to grid 'db_companies.id ==
db_persons.company
I did that (again) now and immediately the javascript stopped working as
expected.
Then I just put back the file jsquery (*/*! jQuery v@1.8.0)* from the older
copy of the app and the javascript worked again as expected.
Regards
Johann
On 24 July 2013 18:42, Richard Vézina wrote:
> Johann don'
Hi I have the following code
RSRecs = db(query).select(
db.weekly_data_reporting.supplier_code,
db.weekly_data_reporting.supplier_name,
db.weekly_data_reporting.item,
has anybody got my question?
On Thu, Jul 25, 2013 at 2:30 PM, Prasad Muley wrote:
> Hello Joe,
> I made a mistake while pasting. // working isn't there in
> updated code.
> actual code is
> {{extend 'layout.html'}}
> {{=form}}
>
> jQuery(document).ready( function(){
>
Uma pena que não pude assitir , mas já baixei uns videos muito bons.
Em quarta-feira, 24 de julho de 2013 16h54min20s UTC-3, MrEdusi escreveu:
>
> Legal.. vou assitir!
>
> Em terça-feira, 23 de julho de 2013 19h31min29s UTC-3, Ovidio Marinho
> escreveu:
>>
>> As 20:00hs hoje não percam
>>
>> ht
The instructions should be almost identical except that:
1) you do not pip install Django
2) you do not ever call django-admin
3) instead you download and unzip web2py. The web2py folder plays the role
of the mysite folder in the example
4) you do not edit any django config file (there is no djan
One problem I see is that the zip code is validated but one may still pass
zip codes which pass validations but are invalid (in the sense that they
produce no data) and the page displays "None".
On Sunday, 21 July 2013 17:17:48 UTC-5, Massimo Di Pierro wrote:
>
> Thank you margaret. Will test it
Are you sure about your point 2. I do not see how adding a print statement
can affect the working (or not working) of this form.
On Tuesday, 23 July 2013 21:18:07 UTC-5, __pyslan__ wrote:
>
> Hello everybody.
>
>
> I'm trying upload files with SQLFORM.grid.
>
> Model:
>
> FilesUploaded = db.defin
The problem is that angular sends the request variables as json in body and
not urlencoded (an expected) So you must replace
def POST(table_name, **vars):
print(vars)
with
def POST(table_name):
vars = json.loads(request.body.read())
print(vars)
On Tuesday, 23 July 2013
Are you sure
auth.settings.logging_enabled = True
?
On Wednesday, 24 July 2013 09:04:07 UTC-5, Marin Pranjić wrote:
>
> I am using trunk. When I register, login or update profile, auth_event
> records are not created.
> Sorry I don't have time to look more into it.
>
> Marin
>
>
--
---
Yo
I do not know what the appliance does. Can you show us the code?
On Wednesday, 24 July 2013 15:03:27 UTC-5, james c. wrote:
>
> I easily deployed my Web2Py app "with just a few clicks" through the
> TurnKeyLinux Hub onto Amazon EC2. The Web2Py Admin console shows that the
> app is running with A
So, some of your jquery code use deprecated stuff... .live() deprecated for
instance, replaced by .on()
Maybe look at the jquery change log and see what the removed and than make
a grep 'deprecated jquery' on your code base!!
Richard
On Thu, Jul 25, 2013 at 6:12 AM, Johann Spies wrote:
> I did
represent=lambda value, row: db.customers_company(value).company_name if
value is not None and value != '' else T('N/A')
Or
format='%(company_name)s' on customers_comapny table at the end of you
define_table.
Richard
If you want to search the company name, you have to pass a query to
SQLFORM.gr
Please try;
jQuery("Please Enter Name").appendTo(jQuery(
"#taxpayer_name").parent());
or
jQuery("Please Enter Name").insertAfter(
"#taxpayer_name");
Your code fails because the div.error is created inside the input element
Il giorno giovedì 25 luglio 2013 13:39:34 UTC+2, Prasad Muley ha scritt
Not sure whether this is your problem, but I thought that orderby used the
syntax:
orderby = db.mytable.a | db.mytable.b
I didn't know we could use lists?
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group an
ehm? recent web2py should parse application/json POSTs just fine !?!
On Thursday, July 25, 2013 3:07:02 PM UTC+2, Massimo Di Pierro wrote:
>
> The problem is that angular sends the request variables as json in body
> and not urlencoded (an expected) So you must replace
>
> def POST(table_name, **
I'm using default/user/*request_reset_password* and default/user/*
reset_password* in my app.
Neither request_reset_password, nor reset_password form performs validation
on user's input. Seems strange, as the form is a clear auth(). Code:
default/user:
def user():
auth.settings.formstyle = 'di
Thank you very much.
On Thursday, July 25, 2013 8:53:33 PM UTC+8, Massimo Di Pierro wrote:
>
> The instructions should be almost identical except that:
>
> 1) you do not pip install Django
> 2) you do not ever call django-admin
> 3) instead you download and unzip web2py. The web2py folder plays th
> def user():
>
> auth.settings.formstyle = 'divs'
>
> if request.args(0) == 'request_reset_password':
> auth.request_reset_password(next = URL('default', 'index'))
>
> return dict(form=auth())
>
Your code is creating and processing the form twice.
auth.request_reset_password(...) creates a
thanks, that's right! now it works. Thanks for the hint ;-)
El jueves, 25 de julio de 2013 10:07:02 UTC-3, Massimo Di Pierro escribió:
>
> The problem is that angular sends the request variables as json in body
> and not urlencoded (an expected) So you must replace
>
> def POST(table_name, **vars
currently i'm using this version: 2.4.6-stable+timestamp.2013.04.06.17.37.38
El jueves, 25 de julio de 2013 11:26:07 UTC-3, Niphlod escribió:
>
> ehm? recent web2py should parse application/json POSTs just fine !?!
>
> On Thursday, July 25, 2013 3:07:02 PM UTC+2, Massimo Di Pierro wrote:
>>
>> Th
Thanks, Anthony, I remofed the if statement and it worked for
request_reset_password.
However, after I click the link sent to e-mail address, the reset_password
form still doesn't process "New password" and "Verify password" fields. The
inputs can be empty, the passwords can be different - no v
never trust > or < on decimal or floats. both are an in-exact
representations of numbers and can have unexpected behaviors for numbers
that are close to each other. i have converted my applications that use
prices to store all prices in the DB in cents as integers and convert on
display to th
What happens if the passwords are different? Which version of web2py?
On Thursday, July 25, 2013 11:14:21 AM UTC-4, lesssugar wrote:
>
> Thanks, Anthony, I removed the if statement and it worked for
> request_reset_password.
>
> However, after I click the link sent to e-mail address, the reset_pa
When submitting the form with different passwords - the page reloads and
that's it. No validation, no error response.flash, nothig.
web2py version: 2.4.7-stable
On Thursday, July 25, 2013 5:44:18 PM UTC+2, Anthony wrote:
>
> What happens if the passwords are different? Which version of web2py?
>
Is it possible that cookies are disabled or that the session is somehow
getting cleared (e.g., session.forget() or session.clear())?
On Thursday, July 25, 2013 11:49:54 AM UTC-4, lesssugar wrote:
>
> When submitting the form with different passwords - the page reloads and
> that's it. No validat
On Tuesday, June 11, 2013 5:14:42 AM UTC+8, Niphlod wrote:
>
> ps: recent web2py releases should parse application/json POSTs
> transparently, no need to request.body.read() anymore it goes all in
> request.vars and request.post_vars as usual.
>
>
Sorry to chime in an old thread, but which
Hi,
I'm using *GAE with the development server* and i'm unable to import
several external modules.
I will try to list the modules i'm trying to import and the problems i
encounter with it:
*python-social-auth*
https://github.com/omab/python-social-auth/
I put this module in the site-packag
On Friday, July 26, 2013 12:45:58 AM UTC+8, Ray (a.k.a. Iceberg) wrote:
>
>
>
> On Tuesday, June 11, 2013 5:14:42 AM UTC+8, Niphlod wrote:
>>
>> ps: recent web2py releases should parse application/json POSTs
>> transparently, no need to request.body.read() anymore it goes all in
>> request.
When not on GAE, if you properly pip install the packages, do they work as
expected?
On Thursday, 25 July 2013 11:50:02 UTC-5, Quint wrote:
>
> Hi,
>
> I'm using *GAE with the development server* and i'm unable to import
> several external modules.
>
>
> I will try to list the modules i'm tryin
I've not tried it, but this may help from the book:
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#Record-representation
"Decimal requires and returns values as Decimal objects, as defined in the
Python decimal module. SQLite does not handle the decimal type so
inte
Just want to thank you Simone (Niphold) for all your contributions to
web2py project... It's really appreciated when someone is dedicated such as
you. I can't contribute as much as you do, but I appreciate very much your
work.
Also Vinicius, really like your effort for the testing app...
:)
Rich
No. Cookies are on. I'm not clearing the session explicitly anywhere in the
code neither. Just created dummy app to test password reset - and
validation works fine in both forms (requesting reset, creating new
password). default/user function of the dummy application is standard and
it looks ju
Currently, the DAL insert() function allows one to insert a record with a
DATE field containing a string type using sqlite as the database. My guess
is that there are other types that also go unchecked within the insert()
function. I think it would be a good idea to raise an exception or
someth
Yes the issue is due to jquery version. In your code, please replace
.prop() to .attr() (for reference see http://api.jquery.com/prop/)
Below code worked in my test:
jQuery(document).ready(function(){
jQuery('#a2_other').hide();
jQuery('#survey_a2').change(function(){
conso
When the form doesn't validate but you get no error messages, it often
means the _formkey checked didn't pass (the _formkey is stored in the
session, so often this is due to an issue with the session or cookies).
Anthony
On Thursday, July 25, 2013 1:50:09 PM UTC-4, lesssugar wrote:
>
> No. Cook
Thanks!
Ok, *openid *and *python-social_auth* are now working.
I indeed needed to install the openid properly and copied the result to my
project. (i was stupid and thought i could just copy over the source
files...)
Only *nltk *still won't import. I installed using pip and now i can import
it
Hi,
I'm still stuck here.. I tried a few other things. I just want to show/hide
#nnd based on whether or not #cnd is checked. This example is in the
manual, but I still cannot get it to work..
Here's the form-
fields = []
fields.append( Field( 'cnd', 'boolean', default=True) )
fields.
Maybe related with
https://groups.google.com/d/msg/web2py/om58tz-DVOk/Lt5beXcLiH8J
By resuming the api:
*As of jQuery 1.6*, the .prop() method provides a way to explicitly
> retrieve property values, while .attr() retrieves attributes.
Therefore, you should replace .attr() with .prop() if yo
This is done on purpose and it is should not be corrupting the database.
About date/datetime. All database (as far as I know) take datetime in input
as a iso string. In fact if you were to pass a datatime object it would be
converted to a datetime object. sqlite is special because not only take
Some modules do something very weird. Some of them have conditional imports
and some assume they are installed in a certain location. I wish this was
handled better by Python.
On Thursday, 25 July 2013 14:03:23 UTC-5, Quint wrote:
>
> Thanks!
>
> Ok, *openid *and *python-social_auth* are now wor
Hello to all.
while I was developing an application I came upon this strange behaviour:
If I run web2py server on a public ip and I try to access a page with a
controller using crud, I get a 404 error. The same page is perfectly
working when I start the server on localhost.
I tried it both on wi
Is it just me, or is everyone getting errors when they try to access the
demos for web2py found here: http://web2py.com/demo_admin/default/site
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiv
Hello to everyone.
I came upon this strange behaviour:
If web2py is running on a public interface and you try to access a page
which uses Crud a 404 error will pop up. The same page works perfectly if
the server runs on localhost. I tried the thing on both linux and windows
with the same resul
Hmm. I admit I made a few assumptions based on the incident I experienced
and how I saw things done in a couple examples in the book. To be precise,
I created a form using the FORM function, where one field was meant to be
used as a date (had a requires=is_date() on it). I then passed the
submi
Same for me.
Le jeudi 25 juillet 2013 20:55:31 UTC+2, Ben A a écrit :
>
> Is it just me, or is everyone getting errors when they try to access the
> demos for web2py found here: http://web2py.com/demo_admin/default/site
>
--
---
You received this message because you are subscribed to the Goog
I think you need to create view for your controller. When you are local
web2py allow generic.html view, but when you are "prod" it prevent the use
of generic.SOMETHING because security hole it could causes.
My best guess.
Richard
On Thu, Jul 25, 2013 at 12:08 PM, Pierpaolo Da Fieno <
pierpaol
hi,
i'm having this model:
table('stations', Field('name'))
db.stations.name.requires = IS_NOT_IN_DB(db, 'stations.name')
and i am creating a crud.create with this:
if request.vars:
db.stations.name.default = request.get_vars['_name']
db.stations.name.writable = False
form = crud.creat
thank you all for your answers, sorry about the "missing in action" I had
to take my CCNA certification so I Left this behind ...
For what I need I think I will try the web-sockets, them we will see...
thank you,
vera
>
--
---
You received this message because you are subscribed to the G
Did you get the CCNA?
Congrats!
Are u Portuguese?
2013/7/25 Vera Moreira
> thank you all for your answers, sorry about the "missing in action" I had
> to take my CCNA certification so I Left this behind ...
> For what I need I think I will try the web-sockets, them we will see...
>
> thank you,
Thanks Massimo,
The appliance installed is web2py-12.1-squeeze-amd64. Also available from
http://www.turnkeylinux.org/web2py
I think these are also referred to as a Patch. Maybe my application is
running with Apache - at least in the Web2Py webadmin page it shows Apache
running. In the installa
Hi Paolo,
Thanks, but no luck.. I replaced
if( jQuery('#no_table_cnd').attr('checked') );
with
if( jQuery('#no_table_cnd').prop('checked') );
..but the box is still displayed by default & doesn't change when I
check/uncheck the checkbox..
Cheers,
-j
On Thu, Jul 25, 2013 at 12:3
I double checked your script and I discovered some errors.
Please try this:
jQuery(document).ready(function() {
jQuery('#no_table_cnd').change(function(){
if( jQuery('#no_table_cnd').prop('checked') ){
jQuery('#no_table_nnd__row').show();
}else{
jQuery
I don't understand too, I do not see any connection, but I'm sure...
Without "print request" command the file uploaded has 0 bytes. With "print
request" command the file uploaded has the correct size...
On Thu, Jul 25, 2013 at 10:04 AM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> Ar
I'm sorry, web2py version is 2.5.1.
On Thu, Jul 25, 2013 at 8:27 PM, __pyslan__ - Ayslan Jenken <
ayslan.pyt...@gmail.com> wrote:
> I don't understand too, I do not see any connection, but I'm sure...
> Without "print request" command the file uploaded has 0 bytes. With "print
> request" command
Works with:
print request
print request.vars
print request.vars.file_name
But if i put for example:
print request.var._formname
Doesn't work! I have to print something related with file_name field.
On Thu, Jul 25, 2013 at 8:30 PM, __pyslan__ - Ayslan Jenken <
ayslan.pyt...@gmail.com> wrote:
Perfect - thanks for your help. I was sloppy with the javascript..
Best,
-j
On Thu, Jul 25, 2013 at 4:21 PM, Paolo Caruccio
wrote:
> I double checked your script and I discovered some errors.
>
> Please try this:
>
>
> jQuery(document).ready(function() {
> jQuery('#no_table_cnd').change(fu
I noticed that SQLFORM.factory with argument keepvalues=True doesn't work,
but
if form.process(keepvalues=True).accepted:
works fine.
This is with trunk. Just wondering if this is intended behaviour, or maybe
I have a subtle error in my use of SQLFORM.
If it's really a bug I'll post a ticket.
Hi,
I just migrated my code from 2.4.6 to 2.5.1, I've encountered a problem
trying to use a dict in my smartgrid
with the following code:
def test():
form = SQLFORM.smartgrid(db.supply,
fields=dict(supply=[db.supply.id]),linked_tables
=dict(supply=['job','file']))
return dict(test=form
On Wednesday 24 July 2013 18:34:08 Alan Etkin wrote:
Note: If you are restoring data with the DAL method import_from_csv_file (not
the Table class method) using id_map={}, which is the method that should be
used to keep references in sync, you should not have issues keeping reference
values. I
Now it's Working.
Thank you for quick response.
On Thu, Jul 25, 2013 at 7:26 PM, Paolo Caruccio
wrote:
> Please try;
>
> jQuery("Please Enter Name").appendTo(jQuery
> ("#taxpayer_name").parent());
>
> or
>
> jQuery("Please Enter Name").insertAfter(
> "#taxpayer_name");
>
> Your code fails becaus
I have a db where I have set validator IS_IN_SET on a particular field. I
am generating table rows (to be used as form), so I need to check if a
particular field is having IS_IN_SET validator set and I want to retrieve
the set values. Reason I want to do this is that I am generating a dynamic
f
Hi,
since my Mobile menu links to non existing stuff "%20CA% or something like
that I want to use the normal menu which I find way nicer.
I guess I need to change this line:
{{=MENU(response.menu, _class='mobile-menu' if is_mobile else
'sf-menu',mobile=is_mobile)}}
the second thing I would love
Thanks Richard and Paolo.
Regards
Johann
> ---
> 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
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit
72 matches
Mail list logo