On Friday, January 25, 2013 10:39:52 AM UTC-5, Alec Taylor wrote:
>
> On Fri, Jan 25, 2013 at 1:59 AM, Alan Etkin >
> wrote:
> >> Hi, the answer to this question may well be that I should leave web2py
> >> alone and use something else, so I had better start
> >
> > Note that there's a specia
On Saturday, January 26, 2013 12:25:41 PM UTC-5, rochacbruno wrote:
>
> I think both are bad! specially by the fact that the largest web2py
> audience is not native English speaker, this kind of sentence should be
> more explicit.
>
> "web2py takes care of main security issues, so developers ha
The upgrade should not have affected installed apps. How did you upgrade?
About the error below. Can you tell us more about the process you use to
download appliances? Is there a traceback with the error? Is the error in a
ticket or in the shell?
On Saturday, 26 January 2013 18:05:19 UTC-6, lud
:-)
On Saturday, 26 January 2013 12:26:10 UTC-6, Mariano Reingart wrote:
>
> FYI
>
> http://ar.pycon.org/bootstrap
>
> If anyone is interested in helping, please contact me (or Alan Etkin)
>
> For more inormation, see:
>
> https://code.google.com/p/web2conf/
>
> This site was used in many PyD
Thank you this helps.
On Saturday, 26 January 2013 12:40:18 UTC-6, mweissen wrote:
>
> Some hours ago I have tried to use the PGP Encryption (Chapter 8.1.2)
> I have found that the line "from gpgme import pgp" should be replaced
> with something like "mail.settings.gpg_home = '/home/www-data/.gnu
You have a good point. This needs to be changed. Please open a ticket and,
if you can, submit a patch.
Massimo
On Saturday, 26 January 2013 09:17:25 UTC-6, Dick Schrauwen wrote:
>
> The full question is at http://gutsup.com/oneletter/138
>
> On Saturday, January 26, 2013 4:10:32 PM UTC+1, Dick S
By default it sues google charts to render the latex ($$, $$). Instead you
can user \(...\) to delimit LaTeX fomulas and user mathjax to render it:
http://cdn.mathjax.org/mathjax/latest/MathJax.js";>
MathJax.Hub.Config({
Go to admin interface and click in "Pack All: it generates a .w2p package.
Or just go to your shell and $tar -cvf myapp.tar.gz /path/to/my/app
If you want some more specific package system maybe it is better to put
your app in github and use Fabric, Puppet, Cheff, BUildout or other tools
like thi
Having just upgraded from version 1.9x to 2.3.2, it seems that all
installed appliances were lost in the transition... And so i am attempting
to resinstall several from http://www.web2py.com/appliances by cutting and
pasting the download link into "get from URL" field of "upload and install
pa
i want to know how to package my application through a script. Can you
point me to a solution somewhere ?
On Thursday, January 10, 2013 2:19:12 PM UTC-6, Niphlod wrote:
>
> what do you want to do with a "build script" ?
>
> On Thursday, January 10, 2013 7:28:45 PM UTC+1, Hector Magnanao wrote:
>
Hi
I ran into this problem while following Massimo's book (btw, thanks for
your efforts - it's good to have a chance to do this directly).
In 3.7 (Adding Crud), it wasn't obvious at first that the addition of crud
should come AFTER the database ('db' in this case) is defined.
I moved the two c
>
> http://ar.pycon.org/bootstrap
>
(Super) Awsome!
--
Very good, Anthony, very good!
Thanks!!
On Sat, Jan 26, 2013 at 7:17 PM, Anthony wrote:
> Option 3: https://groups.google.com/d/msg/web2py/CRPySzABQTk/8jylUabyFTQJ
>
> Anthony
>
>
> On Saturday, January 26, 2013 12:35:26 PM UTC-5, rochacbruno wrote:
>>
>> I can think on two options.
>>
>> *1.
>
> Thanks Alan,
.import_as_csv_file(... colnames=("", "",
...))
The colnames (not implemented) kwarg would take an iterable object (a tuple
for the example) as input
For simple tasks, It's better to just add manually the colnames in the file
Python iterables:
http://docs.python.org/2/gloss
Option 3: https://groups.google.com/d/msg/web2py/CRPySzABQTk/8jylUabyFTQJ
Anthony
On Saturday, January 26, 2013 12:35:26 PM UTC-5, rochacbruno wrote:
>
> I can think on two options.
>
> *1. Unique Key*
>
> db.define_table("table",
> Field("table_a", "reference table_a"),
> Field("table_b"
Good point -- I was thinking of the case when the field is required, which
is the usual default.
Anthony
On Saturday, January 26, 2013 12:55:58 PM UTC-5, __pyslan__ wrote:
>
> Just a little fix, Anthony...
>
> Venture.logr_type.represent = lambda id, r: db.logr_type[id].name if
> db.logr_type[i
once you get what you want with SQLFORM(), pass arguments to the grid is
easy: grid takes formargs={}, createargs={}, editargs={}, that are passed,
respectively, to all forms, only the create form, only the edit form
--
disk cache is shared among processes, so no problem there.
uwsgi should use os.fork() to spawn a new process, so modules are
definitively cached.
Didn't test with cache.ram (but if you want I may test it) because I use
redis as cache in production.
cache.ram will be "erased" when a "forced"
While working through the DAL section of the book, I am getting lazy_tables
errors. Have I missed something? Is it a bug?
Here is the output from the shell, entered via welcome app controllers in
the admin interface:
web2py Shell (2, 4, 1, 'alpha.2', datetime.datetime(2013, 1, 24, 10, 51, 1))
Thanks Alan,
It worked.
could you possibly point to an example of iterable with colnames and
kwarg? Is that something that can be used from the database administrator
or shell command line?
thanks,
Alex
On Saturday, January 26, 2013 4:35:03 AM UTC-8, Alan Etkin wrote:
>
> am trying to impor
Work, man.
Thanks a lot!!
On Sat, Jan 26, 2013 at 4:12 PM, Bruno Rocha wrote:
> the grid has onvalidation argument.
>
>
> SQLFORM.grid(..., onvalidation=check_unique)
>
> --
>
>
>
>
--
Some hours ago I have tried to use the PGP Encryption (Chapter 8.1.2)
I have found that the line "from gpgme import pgp" should be replaced with
something like "mail.settings.gpg_home = '/home/www-data/.gnupg/'".
Maybe the following lines could help (sorry, English is not my mother
tongue):
-It i
FYI
http://ar.pycon.org/bootstrap
If anyone is interested in helping, please contact me (or Alan Etkin)
For more inormation, see:
https://code.google.com/p/web2conf/
This site was used in many PyDays and the last PyCon Argentina:
http://ar.pycon.org/2012
http://ar.pycon.org/2011
http://www.py
the grid has onvalidation argument.
SQLFORM.grid(..., onvalidation=check_unique)
--
Bruno, I like the second option, but I take a look:
def workers():
make_menu('Ventures')
venture_name = ''
venture_id = ''
fields = []
btn_back = None
if request.args(0):
if not session.url_back:
try:
btn_back = make_button_text(" " + T
Just a little fix, Anthony...
Venture.logr_type.represent = lambda id, r: db.logr_type[id].name if
db.logr_type[id] else ""
Because otherwise an error occurs when viewing or editing the registry. The
NoneType has no attribute "name".
Thanks again!
On Sat, Jan 26, 2013 at 1:56 PM, __pyslan__ -
I can think on two options.
*1. Unique Key*
db.define_table("table",
Field("table_a", "reference table_a"),
Field("table_b", "reference table_b"),
Field("unikey", unique=True, notnull=True, compute=lambda row:
"%(table_a)s-%(table_b)s" % row)
)
*2. Form validator*
def check_unique(
I think both are bad! specially by the fact that the largest web2py
audience is not native English speaker, this kind of sentence should be
more explicit.
"web2py takes care of main security issues, so developers have little..."
--
I have a relation many-to-many.
How to prevent the insertion or alterations of duplicate pairs?
Thanks...
--
> from:
> +web2py leaves little choice to application developers in matters related
to security.
> to:
> +web2py leaves little exposure for applications in matters related to
security.
Hi Rufus. IMHO I think the two sentences have different meanings. The
second, in my opinion, implies in some w
On Sunday, January 20, 2013 6:52:02 PM UTC-5, Massimo Di Pierro wrote:
>
> I am looking for help proofreading the final version of the book. It is
> almost done up to a final touch.
>
>
Would have loved to help, but didn't see this until late last night (due to
laptop software migrations...)
Here is a cool episode about virtualisation architecture design:
https://www.youtube.com/watch?v=Kiftbm1L_eQ&list=PL3EFBFBCE1249ABC0
On Fri, Jan 25, 2013 at 1:17 PM, Arnon Marcus wrote:
> Well, the way I currently understand this, is as follows:
> Web2py uses execfile for most of it's work (mo
Anthony, work fine, man!
Reading the web2py book I realized that the problem was in requires and not
in required, but had not understood well what he expects. Now yes! I also
didn't know about the argument _represent!
Thank you very much, man!
On Sat, Jan 26, 2013 at 1:31 PM, Anthony wrote:
I assume you're getting an error message on the form itself, which
indicates the problem is with the default validator, not the notnull
attribute (the latter is set in the database and results in a database
error, which results in web2py returning a 500 server error response if not
otherwise tr
The full question is at http://gutsup.com/oneletter/138
On Saturday, January 26, 2013 4:10:32 PM UTC+1, Dick Schrauwen wrote:
>
>
> hey,
> I had some problems with adding code, so my question is at:
>
>
> The qestion boils down to:
> Why is image-width in markin rendered as htmlattribute and not
I understand (I think) how to create and manage the button links within a
smart grid but I'd like to make the reference field value a link to it's
associated record.
For example ...
# parent table
db.define_table('t_parent', Field('f_name'))
# child table
db.define_table('t_child', Field('f_na
hey,
I had some problems with adding code, so my question is at:
The qestion boils down to:
Why is image-width in markin rendered as htmlattribute and not as an
inline_style?
Please help
Dick
--
A information: I'm using SQLFORM.grid...
On Sat, Jan 26, 2013 at 12:05 PM, __pyslan__ - Ayslan Jenken <
ayslan.pyt...@gmail.com> wrote:
> Hi, Bruno!
>
> Yes, is SQLite... But the default for "required" argument is False ,
> don't? Even so I added the "required=False", deleted the database and
>
Hi, Bruno!
Yes, is SQLite... But the default for "required" argument is False ,
don't? Even so I added the "required=False", deleted the database and
didn't work...
Thanks, man!
On Sat, Jan 26, 2013 at 11:38 AM, Bruno Rocha wrote:
> is it SQLite? did you changed required from True to False?
is it SQLite? did you changed required from True to False?
SQLite does not have ALTER for column type and constraints.
Em 26/01/2013 10:04, "__pyslan__ - Ayslan Jenken"
escreveu:
> My models:
>
> LogrType = db.define_table('logr_type',
> Field('name', notnull=False, label=T("Name")),
> f
>
> am trying to import CSV file
AFAIK, the .import_from_csv method does not support csv without fieldname
headers. This instead should work:
Word5.Wordname, Word5.definition, Word5.synonyms
, ,
Is there a way to change the size formulas are rendered with Markmin?
For example, if I simply have MARKMIN("$$\int_a^b sin(x)dx$$"), the formula
is rendered nicely but the size does not change with css. Text which is not
a formula will change but the forumla stays the same size.
--
Thanks Massimo, but I'm struggling with how to apply this as I don't ever
process the form.
I'm doing:
grid = SQLFORM.grid(...)
return dict(grid=grid, ...)
How would I hook into the grid's process() function?
> SQLFORM(...).process(...)
>
> takes two callback functions
>
> process(onvalidatio
My approach does seem to solve the problem here:
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/form$20append/web2py/1bUiboNcsYw/QwJbcqwUPIIJ
Does the fact that I get an error have anything to do with the web2py
version I am using: 2.2.1
Kind regards,
Annet
--
44 matches
Mail list logo