Yes, the support for redis depend on
python-redishttps://github.com/andymccurdy/redis-pypackage for python.
-rif
joi, 29 noiembrie 2012, 02:06:00 UTC+2, Ralo Tannahill a scris:
I have tried to make some tests using redis to store cache and sessions
but there is no module redis.
I am using
On 28 November 2012 22:16, Richard Vézina ml.richard.vez...@gmail.comwrote:
BUMP!
I have tried uwsgi/nginx several times on different Debian computers.
Although I had some success, it just happened that somtimes errors occured.
I found it very difficult to debug and gave up on it. I am back
web2py executes python code. If you can do it in the shell, you can do the
same thing in web2py. Be careful to check the variable types, probably in
your app something is a little different from your shell environment. BTW,
why don't you just
a = '348'
a = int(a) / 100
?
On Thursday,
$(:input) ?
On Thursday, November 29, 2012 2:29:46 AM UTC+1, Daniele wrote:
Hello all :)
I have a db.define_table that defines a particular role and all its
fields. One of the fields is a boolean, which will display as a checkbox in
the SQLFORM.
What I'd like to do is hide ALL the
Hi Hiphlod,
Thanks for your response. I wasn't saying do everything without
transactions, because you can explicitly start a transaction if I'm not
mistaken. But for the built in CAS functionality it doesn't work when
using implicit transactions. If you explicitly use a transaction and
web2py uses smtplib, which uses something like telnet under the hood.
Technology to talk to a mail server is always the same, no matter what
language you use.
On Thursday, November 29, 2012 12:20:34 AM UTC+1, keiser1080 wrote:
Good idea I will try a other instance (if i have the necessary
code in controllers, code in models or code in external modules ?
On Wednesday, November 28, 2012 10:44:44 PM UTC+1, yes I can wrote:
I am trying to use web2py as a wrapper for a several scripts in a low
traffic environment. When I change code used by web2py, web2py continues to
run the old
instead of using URL('static', 'css/mycss.css') you use
http://cnd.cloudfront.com/whatever/mycss.css
On Wednesday, November 28, 2012 10:33:39 PM UTC+1, elyase wrote:
What is the way to go if one wants to distribute the static content via
Cloudfront CDN? I use Openshift and mod_proxy is
External smtp, gmail
--
Hmmm...
That would give 3 since Python 2.x keeps the calculation as integer (it
won't coerce it to a float).
He could do a=int(a)/100.0 But that puts it into a floating point value,
and rounding sometimes gives surprising and unexpected results.
I am a fan of divmod. How about:
Hi!
I would like to build some dashboard pages using bootstrap scaffolding
utilities. The dashboard has to contain graph (I use highcharts) and
tables... Is there something more I need for bootstrap except what I
find in web2py static js libs?
Thankyou very mutch
Manuele
--
Il 29/11/12 10:49, Joe Barnhart ha scritto:
Hmmm...
That would give 3 since Python 2.x keeps the calculation as integer
(it won't coerce it to a float).
He could do a=int(a)/100.0 But that puts it into a floating point
value, and rounding sometimes gives surprising and unexpected results.
In my experience, and what I have seen from following the threads, the norm
is for questions to be answered very well and very quickly. One of the many
pleasures of using Web2py is the responsiveness of the users group. There
might be the odd exception to this, but this is unusual I believe. So
Oh yes, I am missing entire freight trains of stuff...
Here is what I understand now:
def __getattr__(self, key):
if ogetattr(self,'_lazy_tables') and \
key in ogetattr(self,'_LAZY_TABLES'):
tablename, fields, args = self._LAZY_TABLES.pop(key)
Thanks for your response. I wasn’t saying “do everything without
transactions”, because you can explicitly start a transaction if I’m not
mistaken. But for the built in CAS functionality it doesn’t work when using
implicit transactions. If you explicitly use a transaction and therefor
I have bought the (printed) web2py book (editions 3rd and 4th) from Lulu,
and my note is that the black white printouts are much less attractive
from
the web css book layout. The coloring helps understanding the syntax as
well. I wish the printed book could look as nice as the web version...
I
Hi,
sorry if this was answered elsewhere but I couldn't find it:
I found no consistent answer how to add single line breaks ('br /') as
opposed to paragraphs ('p') into MARKMIN.
This is what I found so far:
(1) the 'purest' Markdown doesn't allow line breaks at all (found in
stackoverflow)
(2)
Bzzzt! Thanks for playing!
You get 3.0 for your result. (I'm not a python genius but I keep an
interpreter handy just to type in stuff and see what I get.)
round(int(348)/100,3)
3.0
In your example, you rounded the result AFTER the integer division of
348/100. But the result of the
Use this:
[[NEWLINE]]
On Thursday, November 29, 2012 11:04:56 AM UTC, Dirk Krause wrote:
Hi,
sorry if this was answered elsewhere but I couldn't find it:
I found no consistent answer how to add single line breaks ('br /') as
opposed to paragraphs ('p') into MARKMIN.
This is what I found
Hi everyone I post a reply in the web3py thread in this mailing list
asking for a site where make a wishlist, but thinking about what I would
want in web3py, I realized that I needed in web2py already so I have
make a patch for the actual translation system in the gluon/languages.py
file.
One of
No error with web2py 1.9.4.
With 2.2.1 I got this with Python 2.5 and Python 2.6
Traceback (most recent call last):
File C:\Python25\web2py\gluon\restricted.py, line 212, in restricted
exec ccode in environment
File C:/Python25/web2py/applications/Hcontrol/controllers/default.py
I was so fixed in the string format, that I was ignoring the basic math!
=/
Thanks to everyone for the tips!!
This solve very well:
%i.%02i % divmod(348,100)
Em quinta-feira, 29 de novembro de 2012 09h12min39s UTC-2, Joe Barnhart
escreveu:
Bzzzt! Thanks for playing!
You get 3.0 for
Hmm, that gets rid of the input boxes but not of the fieldnames as well. I
guess I'll have to do it manually for each field.
On Thursday, November 29, 2012 9:40:29 AM UTC, Niphlod wrote:
$(:input) ?
On Thursday, November 29, 2012 2:29:46 AM UTC+1, Daniele wrote:
Hello all :)
I have a
Hi Carlo
I'm using fpdf without any problem, so I guess the reason is in some of the
data you're passing to fpdf.
The code of the controller would be needed to can lend you a hand.
Regards
2012/11/29 carlo syseng...@gmail.com
No error with web2py 1.9.4.
With 2.2.1 I got this with Python 2.5
Thank you José, this is strange because with 1.9.4 I have no problem.
This is the core part of the function: in the html view I have a link to
generate the pdf.
## Before I create a table for html rendering
if request.extension==pdf:
import os
from gluon.contrib.pyfpdf import
If McAfee is running on the server, McAfee blocked the emails sending from
web2py, which isn't on the whitelist of McAfee. Try to change web2py.exe
into apache.exe
On Wednesday, November 28, 2012 10:20:55 AM UTC-5, Aurelijus Useckas wrote:
Hey, strange situation. Would apreciate your help...
Assuming this is an imported module, you can add the following to a model
file:
from gluon.custom_import import track_changes; track_changes(True)
See
http://web2py.com/books/default/chapter/29/04#Accessing-the-API-from-Python-modules
.
Anthony
On Wednesday, November 28, 2012 4:44:44 PM
Found: it seems a problem with 32 bit png files. When converted to 24 bit,
pdf rendering was ok. Thank you.
Il giorno giovedì 29 novembre 2012 13:45:08 UTC+1, José Luis Redrejo
Rodríguez ha scritto:
Hi Carlo
I'm using fpdf without any problem, so I guess the reason is in some of
the data
uhm, seemed a different problem: according to
http://docs.python.org/2/library/re.html the flags parameter was added
only in python 2.7
On Thursday, November 29, 2012 2:55:48 PM UTC+1, carlo wrote:
Found: it seems a problem with 32 bit png files. When converted to 24 bit,
pdf rendering was
fieldnames as in labels ?
On Thursday, November 29, 2012 1:45:22 PM UTC+1, Daniele wrote:
Hmm, that gets rid of the input boxes but not of the fieldnames as well. I
guess I'll have to do it manually for each field.
On Thursday, November 29, 2012 9:40:29 AM UTC, Niphlod wrote:
$(:input)
+1 to what Peter said.
On Thursday, November 29, 2012 4:06:30 AM UTC-6, peter wrote:
In my experience, and what I have seen from following the threads, the
norm is for questions to be answered very well and very quickly. One of the
many pleasures of using Web2py is the responsiveness of the
Hi all
Given the following model (polymodel location - location_outdoor
location_indoor) on GAE:
define_table('location',
Field('name', 'string'),
Field('active', 'boolean'),
polymodel = True)
define_table('location_outdoor',
db.location,
Field('country', 'string'),
I'd be curious to know if the lack of feedback on this thread so far is due
to the devs being incredibly busy or web2py lacking a genuine working
mechanism to execute scripts that have access to the models at startup only.
I've tried a lot of permutations for setting a script at the start with
ok, thank you.
I am only wondering why there is a special tag '[[NEWLINE]] when there is
already a one-to-one token for it - the single page break itself.
This can be parsed with
re.sub(r'([^\n])\n([^\n])', r'\1[[NEWLINE]]\n\2', s)
(full example here:
Sincere apologies for poking holes at this beautiful framework, but while
I'm in here, I have another issue I encountered while using the framework.
I'm only expressing hurdles I've encountered while using the framework in
the hope that it can give the devs some insights on how the framework
I agree
On Wednesday, 28 November 2012 20:26:47 UTC-6, pbreit wrote:
Pretty nice:
http://jessenoller.com/2012/11/28/the-great-python-org-redesign/
--
Opened an issue and will review it today
On Thursday, 29 November 2012 06:17:22 UTC-6, demetrio wrote:
Hi everyone I post a reply in the web3py thread in this mailing list
asking for a site where make a wishlist, but thinking about what I would
want in web3py, I realized that I needed in
I apologize for the lack of responsiveness. Some of us have been busy
attending with PyCon Argentina and PyCon Brazil.
Everything you propose is sensible. cron @reboot should work but other
users have reported problems with it. I believe there is an open ticket
about it.
I will look at this
The idea was to insert explicit newlines inside tags like H1, H2, etc.
On Thursday, 29 November 2012 08:52:24 UTC-6, Dirk Krause wrote:
ok, thank you.
I am only wondering why there is a special tag '[[NEWLINE]] when there is
already a one-to-one token for it - the single page break itself.
See, I knew there had to be something better. It just felt wrong, but I've
only been learning python for a few months.
Thanks so much. That's so much more elegant.
On Wednesday, November 28, 2012 11:05:22 AM UTC-8, Massimo Di Pierro wrote:
tags = ', '.join(t.name for t in
Hi all,
this is my first post here so allow me to give my compliments to Mr. Di
Pierro and all the people that works on this wonderful project.
I do not have a big experience in web programming, i came from offline :)
programming and triyng to add value to the products of my software house
with
I'm making a room reservation system in Web2Py over Google App Engine. When
a user is booking a Room the system must be sure that this room is really
available and no one else have reserved it just a moment before. To be sure
I make a query to see if the room is available, then I make the
I'm new to Python and I'm trying to install web2py in a virtualenv. I'm
running a 32 bit python 2.7.3 installation on a 64 bit Windows 7.
From what I read, this should be the process:
- install virtualenv (done)
- create the virtualenv (done)
- install pywin32 in that env (I've read
1) good point. We have the following functions but they are not documented:
def get_or_create_user(self, keys, update_fields=['email']):
def login_bare(self, username, password)
2) you can use auth.define_tables(username=True) so that email is not used
for login. The problem is that you still
GAE does not support transactions across multiple tables. You can put your
dal code into a function as in
def mydblogic(*args):
db.insertdb().updatedb(0.select
and run it with
from google.appengine.ext import db as gae
gae.run_in_transaction(mydblogic, *args)
On
Not sure this is your problem but the pypi installer for web2py is probably
broken and anyway very old. We do not usually install web2py. We just
unzip it.
On Thursday, 29 November 2012 08:21:30 UTC-6, Bernardo G. wrote:
I'm new to Python and I'm trying to install web2py in a virtualenv. I'm
Hi all,
this is my first post here so allow me to give my compliments to Mr. Di
Pierro and all the people that works on this wonderful project.
I do not have a big experience in web programming, i came from offline
:)
programming and triyng to add value to the products of my software house
FYI (from web2py-developers)
Hello everybody,
At PyCon Argentina I met Craig Kerstiens from Heroku. He explained to me
how heroku works and we were able to make web2py work on heroku.
This is still experimental and I will continue tweak it but you may want to
give it a try and share your
On 29 Nov 2012, at 6:41 AM, Magnitus eric_vallee2...@yahoo.ca wrote:
I'd be curious to know if the lack of feedback on this thread so far is due
to the devs being incredibly busy or web2py lacking a genuine working
mechanism to execute scripts that have access to the models at startup only.
On 29 Nov 2012, at 7:09 AM, Magnitus eric_vallee2...@yahoo.ca wrote:
Sincere apologies for poking holes at this beautiful framework, but while I'm
in here, I have another issue I encountered while using the framework.
I'm only expressing hurdles I've encountered while using the framework in
On Thursday, November 29, 2012 10:34:13 AM UTC-5, Massimo Di Pierro wrote:
1) good point. We have the following functions but they are not documented:
def get_or_create_user(self, keys, update_fields=['email']):
def login_bare(self, username, password)
login_bare() is documented:
Maybe you could put all the fields inside a div and then hide/show the
whole div.
Anthony
On Thursday, November 29, 2012 7:45:22 AM UTC-5, Daniele wrote:
Hmm, that gets rid of the input boxes but not of the fieldnames as well. I
guess I'll have to do it manually for each field.
On
I could do that. Would I need to add the div directly in the controller or
the view? My controller looks something like this now:
def mypage():
form = SQLFORM(db.mytable)
return dict(form=form)
I guess there should be a way to edit the SQLFORM to add an extra div?
Thanks guys
On
http://www.highcharts.com/
Is pretty nice!
Do you know something similar that is open source?
Richard
On Thu, Nov 29, 2012 at 4:58 AM, Manuele Pesenti
manuele.pese...@gmail.comwrote:
highcharts
--
I see, and thank you. Now we already have a database full of text without
the 'newline' tag and I have two options:
(1) traverse through the database and applying foresaid regex to all text
fields or
(2) hack the regex somewhere into the code.
I just tried (2) and it seems to be working; I
From my attempts to get apps running on Heroku (a few experiments with
nodejs) people expect to create and edit the requirements and the procfile
anyways. The procedure is also described in Herokus
Tutorialshttps://devcenter.heroku.com/articles/python,
so one needs to understand the concept
Hello All,
I have an application running on Web2py source (windows) 1.99.7 (2012-03-04
22:12:08) stable, with the following auth settings
from gluon.tools import Auth, Crud, Service, PluginManager, prettydate
auth = Auth(db, hmac_key=Auth.get_or_create_key())
crud, service, plugins = Crud(db),
Check http://d3js.org/ and http://raphaeljs.com/
Also there is http://paperjs.org/ and esp http://processingjs.org/
There is a good overview here:
http://coding.smashingmagazine.com/2012/02/22/web-drawing-throwdown-paper-processing-raphael/
Am Donnerstag, 29. November 2012 17:24:43 UTC+1
The easiest way is probably via a custom form:
http://web2py.com/books/default/chapter/29/07#Custom-forms.
Another option -- each table row or div containing a field input has an id
that starts with [tablename]_, so you could use a jQuery selector like:
jQuery('[id^=tutor_]').hide()
That will
I found this list :
http://alternativeto.net/software/highcharts/
Thanks Dirk
Richard
On Thu, Nov 29, 2012 at 11:39 AM, Dirk Krause dir...@googlemail.com wrote:
Check http://d3js.org/ and http://raphaeljs.com/
Also there is http://paperjs.org/ and esp http://processingjs.org/
There is a
Ah ok!
so if i care for a connection then i must read the body
otherwise no problem rejecting
thanks a lot Roberto and compliments for your work
Giovanni V.
Il giorno giovedì 29 novembre 2012 16:40:27 UTC+1, Roberto De Ioris ha
scritto:
Hi all,
this is my first post here so allow me to
Some valid and interesting questions can get unanswered, slip below
the radar, that's bound to happen everywhere. I have a feeling that
web2py community is very active when compared to some others, taking
the number of members into account. It would be interesting to put
some numbers behind this
Why do you want the newline at all? If you have \n\n in your text, it will
be used to brak p.../p. You can just add space after /p with css.
On Thursday, 29 November 2012 10:27:12 UTC-6, Dirk Krause wrote:
I see, and thank you. Now we already have a database full of text without
the
Can you help with that documentation?
On Thursday, 29 November 2012 10:35:44 UTC-6, Dirk Krause wrote:
From my attempts to get apps running on Heroku (a few experiments with
nodejs) people expect to create and edit the requirements and the procfile
anyways. The procedure is also described
What do you mean by the following actions have no result. I do not think
the problem here is 1.997 vs 2.2.1. I think the problem is more the
configuration of the email server.
On Thursday, 29 November 2012 10:38:02 UTC-6, Geo wrote:
Hello All,
I have an application running on Web2py source
Sure. I could take what you wrote down there, test it on Heroku, verify
that nothing was forgotten, beef it up a little bit and put it - where? A
pull request on Github? Is the documentation a git?
Am Donnerstag, 29. November 2012 17:52:22 UTC+1 schrieb Massimo Di Pierro:
Can you help with
I learned from my editor that there is a huge difference between a
paragraph and a line break. This also documented on a different thread here
- people writing texts need both.
Am Donnerstag, 29. November 2012 17:51:45 UTC+1 schrieb Massimo Di Pierro:
Why do you want the newline at all? If
There are a couple of issues. One is: what do you mean by startup? It's
fairly well defined if you're running web2py with Rocket as the server, but
in a wsgi environment, especially one that might have multiple processes,
it's a lot less clear.
Yes and no.
Obviously, a task that needs to run
i have not used polymodels so i can't answer the last question.but
about that last one, when you access the GAE datastore viewer (as provided
by GAE), what is the name of the table/model that is stored there? does it
store location_indoor and location_outdoor, or just location with
I do following for case insensitive email login (on 2.2.1):
def login_email_lower(form):
form.vars.email = form.vars.email.lower()
return form
auth.settings.login_onvalidation = login_email_lower
auth.settings.register_onvalidation = login_email_lower
auth.settings.profile_onvalidation =
in your particular example, i often define a field like:
Field('client_code', 'string', required=True, requires=IS_IN_DB(db,
'client.code', '%(code)s'))
that does the lookup for the dropdown, but stores the string in the new
table. if you will be doing this lots of times then you should
Please open a ticket for improvement and list APIs you would want to have.
I will probably add them.
I'll take a look at what posters have described so far and if I find that
the functionality is still lacking, I'll add a ticket for it.
2) you can use auth.define_tables(username=True) so that
On 29 Nov 2012, at 10:22 AM, Magnitus eric_vallee2...@yahoo.ca wrote:
There are a couple of issues. One is: what do you mean by startup? It's
fairly well defined if you're running web2py with Rocket as the server, but
in a wsgi environment, especially one that might have multiple processes,
Yes, the book is on github (https://github.com/mdipierro/web2py-book)
On Thursday, 29 November 2012 10:56:37 UTC-6, Dirk Krause wrote:
Sure. I could take what you wrote down there, test it on Heroku, verify
that nothing was forgotten, beef it up a little bit and put it - where? A
pull
linode/uwsgi/nginx/mariadb/ubuntu 12.04 works great for me... actually very
happy with linode thanks to Bruno's review and Niphlod's advise. Next week
will start switching the traffic...
On Thu, Nov 29, 2012 at 3:33 AM, Johann Spies johann.sp...@gmail.comwrote:
On 28 November 2012 22:16,
I need 12.10 because Redmine is broken in 12.04.
Now web2py and Redmine works together nicely with apache, but unfortunetly
uwsgi not working in 12.10
I try a few thing without success, I will try again in the coming days.
Richard
On Thu, Nov 29, 2012 at 2:55 PM, Adnan Smajlovic
Il 29/11/12 17:24, Richard Vézina ha scritto:
http://www.highcharts.com/
Is pretty nice!
Do you know something similar that is open source?
Richard
At the moment I haven't found nothing enough good... I'll be glad if
someone can notify me :)
M.
--
other alternatives:
https://github.com/HumbleSoftware/Flotr2
http://canvasxpress.org/
http://jsxgraph.uni-bayreuth.de/wp/
I like and use, in combination with web2py, Flot http://www.flotcharts.org/
Il giorno giovedì 29 novembre 2012 21:19:15 UTC+1, Manuele ha scritto:
Il 29/11/12 17:24,
Yes, modules do not automatically update -- only models, controllers, and
views. Did you not see
this: https://groups.google.com/d/msg/web2py/eYk7WsjWV_Y/n9_SIZYjU_4J?
Anthony
On Thursday, November 29, 2012 4:32:35 PM UTC-5, yes I can wrote:
In my controller scripts I have import statements,
I recently upgraded to web2py 2.2.1 from 1.99. I have an external set of
modules that I am importing into my application. Since I updated to 2.2.1 I
am getting errors saying that the module does not have the attribute
'function'.
To explain further, I have an external set of modules under the
Thanks, Massimo, this is great!
On Wednesday, November 28, 2012 2:26:19 PM UTC-5, Massimo Di Pierro wrote:
Yes. Install web2py and then install the book from
https://github.com/mdipierro/web2py-book
it is just a web2py app.
On Wednesday, 28 November 2012 05:45:39 UTC-6, Thomas Wimmer
Yes, re.sub(..., flags=) is a parameter since python 2.7
For older python, flags can be embeded, re.DOTALL becomes '(?s)':
color += re.sub('(.).',lambda m: m.group(1),line, flags=re.DOTALL)
could be replaced by:
color += re.sub('(?s)(.).',lambda m: m.group(1),line)
If this works, fpdf.py
Any luck with this?
On Tuesday, September 4, 2012 3:02:07 AM UTC-4, Johan Börjesson wrote:
I am using selectable in SQLFORM.grid to create checkboxes and a submit
button, it's working fine.
But I would like to have two submit buttons where each button calls a
different function, depending
Thanks for the quick reply howesc.
Just for the record, your suggested:
Field('client_code', 'string', required=True, requires=IS_IN_DB(db,
'client.code', '%(code)s'))
did not work. It needed a minor change to:
Field('client_code', 'string', required=True, requires=IS_IN_DB(db, *
Thanks for the suggestion. I had tried something similar but got an error
and even with this I have an referrering to the unexpected use of 'format'.
type 'exceptions.TypeError' __init__() got an unexpected keyword argument
'format'VERSIONweb2py™(2, 2, 1, datetime.datetime(2012, 10, 21, 16,
85 matches
Mail list logo