This is what I see and the play button doesn't work (see attached). The
link is OK as I can open it if I right click and press Open Video in new
tab.
Thanks
On Friday, November 23, 2012 3:51:49 PM UTC+13, Andrew W wrote:
>
> Could you please confirm that it's working OK ?
>
> thanks
>
>
>
I would like to get the translation function T() working within a module in
web2py but I am not sure how one would go abouts importing the necessary
modules to do that. Could someone enlighten me on this?
Many thanks in advance!
Calvin
--
bootstrap is a css framework. If you want to remove it, surely you'll lose
some "necessary styles" (I guess you're referring to the styles that
usually are called "tipography", such as alignment of H1,H2, etc, lists,
paragraph formats and so on...).
Choose your own layout and apply your styles:
No, in some specific cases I can not create another db, because of
restrictive permissions of client systems.
In worst case I will have to search and replace prefixes in the files. I
thought that maybe there is an easier solution that I did not know of.
Thanks for all the suggestions!
Regards,
Hi Niphold,
as I have written - at this point I am just evaluating the capabilities of
the frameworks, not having a chance to try anything out. If I'm going to
have sufficient time, I'll check out your suggestion. It makes sense
considering the source code =)
Thanks!
KBS
On Monday, November 2
hi
i want to show link "edit" in view just for users in the group editors
how to check that in view?
or is there another way to do that?
and another question: i want new users (signin in) to be part of a certain
(default) group.
how?
andrej
--
take a good read on
http://web2py.com/books/default/chapter/29/09#Authorization, it has all the
bits of info you need.
On Tuesday, November 27, 2012 11:01:41 AM UTC+1, andrej burja wrote:
>
> hi
>
> i want to show link "edit" in view just for users in the group editors
> how to check that in vie
take a look on
http://web2py.com/books/default/chapter/29/04#Accessing-the-API-from-Python-modules
On Tuesday, November 27, 2012 9:41:55 AM UTC+1, Calvin wrote:
>
> I would like to get the translation function T() working within a module
> in web2py but I am not sure how one would go abouts impo
Hi there,
I just tracked down a thorny problem I was having with Storage.getlist(),
and think it may be useful to folks.
The particular situation was a strange edge-case, where I'm wanting a
request.vars value as a list, so am calling:
my_ids = request.vars.getlist('my_id')
The problem was tha
> On Monday, November 26, 2012 4:27:19 AM UTC-3, Wouter Pronk wrote:Hello
All,
> I'm trying to connect to an external Informix Standard Enigine database.
This works when I use Informixdb (python-module), but in
> web2py I get the following error when go to the database administration:
The ada
in web2py book:
In the case of a table including an "upload"-type field ("fieldname"), both
process(dbio=False) and validate() deal with the storage of the uploaded
file as if process(dbio=True), the default behavior.
it means that I cannot delay the upload?
model based on Massimo examples:
db
Alan,
if you were here I would give you a big hug. It works! I already tried this
but I left one of the sql_s+ assignments. Now I cleared them all and I have
the required result. Thank you very much.
Op dinsdag 27 november 2012 12:25:38 UTC+1 schreef Alan Etkin het volgende:
>
> > On Monday, N
I'm running into a weird "lazy tables" bug. I have about 32 tables defined
and I'm running into a error when I try to open a controller on a table
that references another. The referenced table doesn't show up in the DAL
and web2py throws an error.
I can see the table during "define_table" and
I have configured nginx+uwsgi in CENTOS 6.3, with web2py 2.2.1
As I have read in other posts, uwsgi is configured to use processes instead
of threads.
In this scenario if I want to use database connection pooling to avoid the
overhead of stablishing a new connection in every request.
Every proc
a single process will establish one connection only at the first request.
I'm not sure if a newly spawned process will inherit (because of the nature
of what uwsgi uses to spawn processes, a fork()) the db connection, anyway
definitely there's no need to use a connection pooling mechanism to spe
Thanks, Ales. However, it appears to be more of a self-contained/standalone
solution than something that can be readily integrated into an existing
web2py page. Anything else out there that matches the criteria?
-Lamps
On Monday, November 26, 2012 3:19:52 PM UTC-5, LightDot wrote:
>
> Well, th
Hi there
I've stuck with a small problem with the subject.
There is a table with a fileld like this:
Field('author','reference auth_user',widget =
SQLFORM.widgets.autocomplete(request, db.auth_user.cn,
id_field=db.auth_user.id, limitby=(0,20), min_length=2), ondelete="no
action",label='Авт
Jim,
I did discover one thing yesterday - this line of code hides the table from
smartgrid:
db.supplier_contacts.supplier_id.readable=False
Took out that line and the supplier_contacts link appeared in the grid.
On Monday, November 26, 2012 4:12:22 PM UTC-5, Jim S wrote:
>
> Cliff
>
> In my t
Mind it does not work on GAE.
On Sunday, 25 November 2012 03:28:57 UTC-6, mweissen wrote:
>
>
>
> 2012/11/25 howesc >
>
>> Martin,
>>
>> 1. i didn't know about maintenance modehow do you trigger it? i
>> suspect there is a way to route it to use a particular set of view(s)
>>
>
> Howesc,
That's a css issue. I do not think there is a rows attribute. Only height.
On Sunday, 25 November 2012 08:36:02 UTC-6, david.waldrop wrote:
>
> Oops - dumb question - I figured it out. One has to reference the sqlgrid
>> variable name passed to the view. In my case "results". However, I now
>
My bad. It is missing a view. I will put it back.
On Monday, 26 November 2012 11:53:56 UTC-6, rh wrote:
>
> On Sat, 24 Nov 2012 16:20:03 -0800
> rh > wrote:
>
> >
> > This link seems to do what I had expected:
> > http://www.web2py.com/examples/form_examples/form
> >
> > But my install does
Please open a ticket about this.
On Monday, 26 November 2012 11:53:59 UTC-6, gabriele dantona wrote:
>
> Hello,
> web2py's vanilla home page (latest version) is not displayed correctly in
> IE7 (see the attached image).
>
> As you can see, the "flash" bar is too wide, and also the upper right m
In which way this is not working correctly?
On Monday, 26 November 2012 12:45:22 UTC-6, Luc Chase wrote:
>
> The documentation at
>
> http://web2py.com/books/default/chapter/29/06?search=reference#Self-Reference-and-aliases
> says that this should be possible.
>
> However my models code in db_wi
This has changed in trunk.
On Tuesday, 27 November 2012 08:17:00 UTC-6, Cliff Kachinske wrote:
>
> Jim,
>
> I did discover one thing yesterday - this line of code hides the table
> from smartgrid:
>
> db.supplier_contacts.supplier_id.readable=False
>
>
> Took out that line and the supplier_contac
I'm trying to running gluon/contrib/webclient.py as is (i.e, with no
modification) and I'm getting this error:
start here -
$ python webclient.py
Traceback (most recent call last):
File "webclient.py", line 205, in
test_web2py_registration_and_login()
File "webclient.py",
I want to select teachers that have taught for more than one year, are
getting paid and have a friendly sounding first name.
The friendly sounding names are stored in a table, along with their
expected position in the name.
Currently I'm using this:
teacher_query = db.teachers.years_taught!=0
This is fixed in trunk. It is not not a problem with webclient. It is a
problem with sessions. In 2.2.1 if you visit a page for the first time and
do not save anything in the session, the session file is not save. When you
visit another page another session id is created and webclient thinks the
I would suggest that when a user register you check if they have "friendly
sounding" first name and flag it, then search using the flag.
On Tuesday, 27 November 2012 09:48:48 UTC-6, Wes Hall wrote:
>
> I want to select teachers that have taught for more than one year, are
> getting paid and have
Can you please upen a ticket about this on google code? It looks like a bug.
On Saturday, 24 November 2012 10:37:00 UTC-6, Maria Mitica wrote:
>
> Hello
>
> I have the following problem:
> - i have a sqlform with a date field (which I customized with a jquery
> widget, that, among other things,
I believe this is a known bug. Common fields are ignored if there i no
query. Please check if
db().select(db.p2.name)
and
db(db.p2).select(db.p2.name)
give different results. I believe there is an open ticket about this. I
will try fix it asap.
On Sunday, 25 November 2012 16:00:02 UTC-6, B
can you send a pull request for the appliance?
On Tuesday, 13 November 2012 05:32:50 UTC-6, dhmorgan wrote:
>
> Like many of the older example appliances, this does not function properly
> as it is.
>
> I personally was not able to get manage.py to work, but the database can
> accessed via admin
Currently we do not support virtual fields in grid but it in the todo list.
On Tuesday, 13 November 2012 07:00:37 UTC-6, Johann Spies wrote:
>
> How do I use a Virtual Field in a grid?
>
> I am getting the error:
>
> Query Not Supported: 'Row' object has no attribute 'ut
>
> when I use the followi
This was a tricky one. The $f does not match the extension.
routes_in = (
( '/$c/$f' , '/init/$c/$f' ),
( '/$c/$f\.$e' , '/init/$c/$f\.$e' ),
( '/$c/$f/$anything' , '/init/$c/$f/$anything' )
)
routes_out = (
( ''/init/$c/$f' , '/$c/$f' ),
( ''/init/$c/$f\.$e' , '/$c/$f.$e' ),
No idea but if you find out, please let us. We included pyrtf since 2007
but to my knowledge it is not user much and the author stopped mantaining
long ago.
On Tuesday, 13 November 2012 07:53:38 UTC-6, piero crisci wrote:
>
> I am using pytrf for create a document.
> I want to make the Heading f
I believe this is now fixed in trunk. The class should be "input-file" not
"btn" and that was missing.
On Saturday, 24 November 2012 16:06:51 UTC-6, Joe Barnhart wrote:
>
> I was just playing with automatically-generated form with an "upload"
> field and noticed that the button created with that
I responded but my answer did not appear. I believe this is a known bug.
The common_filters are ignored if there is no query:
try
db().select(db.p2.name)
vs
db(db.p2).select(db.p2.name)
This should be fixed. I believe there is already a ticket on the topic.
On Sunday, 25 November 2012 15:42:14 U
Can you please post the exact wiki content you are using with auth.wiki?
On Tuesday, 27 November 2012 02:40:13 UTC-6, Andrew W wrote:
>
>
> This is what I see and the play button doesn't work (see attached). The
> link is OK as I can open it if I right click and press Open Video in new
> tab.
Good catch! Fixed in trunk.
On Tuesday, 27 November 2012 03:37:43 UTC-6, roger wrote:
>
> Hi there,
>
> I just tracked down a thorny problem I was having with Storage.getlist(),
> and think it may be useful to folks.
>
> The particular situation was a strange edge-case, where I'm wanting a
> req
At this time the API do not allow this but perhaps it should. Please open a
ticket about this.
On Tuesday, 27 November 2012 05:29:03 UTC-6, Fabiano Faver wrote:
>
> in web2py book:
> In the case of a table including an "upload"-type field ("fieldname"),both
> process(dbio=False) and validate()
Since I obfuscated the real application, I can't fault this answer.
However, in the current usage, it doesn't feel like the best solution.
Teachers are being inserted into the database from outside Web2Py, while
the friendly names are managed from within (and might change frequently,
which woul
Hello user,
The purpose of that thread is to discuss where web2py should got in the
future. For now we refer to that as web3py but noting is settled, not even
the name.
There is a prototype containing some of my ideas for web3py.
My ideas are:
1) keep dal, templates, and validators
2) rewrite s
There are two possibilities: 1) it is an autocomplete bug; 2) the encoding
of the layout is not set to utf8. If you can check 2 and that is correct,
please open a ticket and I will check 1.
On Tuesday, 27 November 2012 07:59:29 UTC-6, Dmitry Mosin wrote:
>
> Hi there
>
> I've stuck with a small
You can simplify maintenance somewhat on Linux or Mac by soft linking model
files.
First off, figure out which application is going to own the shared tables.
Put the shared tables in one model file in that applications models
directory.
At the top of the model file do something like this:
mym
A ticket about upload fields ignoring dbio=False or the SQLFORM.factory
feature?
Em terça-feira, 27 de novembro de 2012 14h18min44s UTC-2, Massimo Di Pierro
escreveu:
>
> At this time the API do not allow this but perhaps it should. Please open
> a ticket about this.
>
>
> On Tuesday, 27 Novemb
This is not really a web2py issue. This is a database issue. Who would you
do this efficiently with SQL? Unless you store the flag, you can try using
regex search. It will only work with some databases and it may not be more
efficient. How many friendly names do you have?
On Tuesday, 27 Novembe
I think is an authentication problem. Somehow security broke this. Please
open a ticket.
On Monday, 26 November 2012 13:30:28 UTC-6, Mark wrote:
>
> After upgraded to 2.2.1 from 1.99.7, the crontab expire_sessions.py didn't
> work with "web2py -Y -L options.py"
>
> There are too tasks in my cron
in your case i would suggest using the requires login decorator, and then
in the controller function limiting what rows are viewed/updated by writing
a query where created_by==auth.user.id (or something similar based on your
schema). yes, you would have to write a (hopefully simple) controller
The issue is do you want 1) a new copy of the default file for every record
or 2) do you want all default files pointing to the same one?
In case 2) you should be able to do from the shell:
filename = db.docs.filepath.store(open('default.png'))
then use in your action:
db.docs.filepath.default
Julian,
can you add logging to your delete_linked method to prove to yourself that
it is being called, and that it is not throwing an exception? that will
help us track down where it's gone astray
thanks!
cfh
On Sunday, November 25, 2012 5:43:16 PM UTC-8, Julian Sanchez wrote:
>
> Oh, I
form = SQLFORM.factory(Field('apples','integer',label='Enter the Number of
Apples'),
Field('pears','integer',label='Enter
the Number of Pears'))
if form.process().accepted:
On Friday, 16 November 2012 01:20:36 UTC-6, Paul Rykiel wrote:
>
> Greetings ...
What is your browser? What web2py version?
On Friday, 16 November 2012 13:35:56 UTC-6, Daniele wrote:
>
> I cannot get response.flash to display for the life of me...I'm using a
> vanilla version of the latest twitter bootstrap and have the following in
> my style.css (which I took verbatim from
I have been traveling and missed some emails. I am trying to catch up? Have
I missed anything important?
--
I think we are thinking about it at the time python3 is working well.
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
83 8826 9088 - Oi
83 93
Understood, this is a database issue. My expense comment was referring to
frequently checking the db for changes, not the actual query.
Friendly names should < 10, teacher list should remain < 1000.
It does sound as though my best bet is to monitor the "friendly name"
manage page, and on inser
Can anyone tell me how to reduce the vertical white space at the bottom of
the element that appears in layout.html when rendered? I think
it's bottom padding, but I'm not sure.
I've been tuning the style of some elements with custom style sheet using
@media screen, but I can't seem to find wh
What about a "prefix" column, and filter all selects on the prefix. A single
database ctructure sounds more scalable and logically you're partitioning the
data based on login or context. Prefixing table names doesn't sound like a
good idea.
--
Is there any site where we can post improvements that we want to see in
web3py? (something like a wish-list)
El 27/11/12 17:28, Massimo Di Pierro escribió:
> Hello user,
>
> The purpose of that thread is to discuss where web2py should got in
> the future. For now we refer to that as web3py but not
This is all great. Thank you so much. I did have to use
migrate_enabled=False rather than just migrate=False otherwise I got a
complaint that the auth_user table already existed.
Which leads me to my followup...
How do I keep separate auth tables for each app? or potentially other
tables th
If the reference is to a different table, the CRUD renders the field as a
list box allowing the user to select the record in the foreign table. But
as a self-join the CRUD renders the field as a simple text box and it seems
to create a default value of 0 when saved. Then, I think that causes the
r
Does your layout or view include {{=response.flash}} anywhere? Here's how
it's done in the welcome app:
http://code.google.com/p/web2py/source/browse/applications/welcome/views/layout.html#70
.
Anthony
On Friday, November 16, 2012 2:35:56 PM UTC-5, Daniele wrote:
>
> I cannot get response.flash
So, is there any tool capable of generating python code from diagrams?
I was taking a look at Xtext, is there some MDA tool in python language?
Or any tool designed to generate web2py models from diagrams?
Or even generate diagrams from web2py models?
Thanks
--
Filed issue 1191.
http://code.google.com/p/web2py/issues/detail?id=1191
Il giorno martedì 27 novembre 2012 15:22:36 UTC+1, Massimo Di Pierro ha
scritto:
> Please open a ticket about this.
>
> On Monday, 26 November 2012 11:53:59 UTC-6, gabriele dantona wrote:
>>
>> Hello,
>> web2py's vanil
Thanks Massimo. I just opened a ticket.
Mark
On Tuesday, November 27, 2012 11:35:21 AM UTC-5, Massimo Di Pierro wrote:
>
> I think is an authentication problem. Somehow security broke this. Please
> open a ticket.
>
> On Monday, 26 November 2012 13:30:28 UTC-6, Mark wrote:
>>
>> After upgraded to
For this kind of thing, triggers are great.
On Tuesday, November 27, 2012 10:23:13 AM UTC-7, Wes Hall wrote:
>
> Understood, this is a database issue. My expense comment was referring to
> frequently checking the db for changes, not the actual query.
>
> Friendly names should < 10, teacher list
I figured out how to open a ticket, and what to put into it. I provided a
diff file against the source in trunk to add my feature. It does not
affect current users but only adds the ability to map "None" into a
different value for Fields.
code.google.com/p/web2py/issues/detail?id=1183
-- Joe
Only about 24 lbs. of turkey and leftovers... But you're probably better
off for it!
On Tuesday, November 27, 2012 8:42:38 AM UTC-8, Massimo Di Pierro wrote:
>
> I have been traveling and missed some emails. I am trying to catch up?
> Have I missed anything important?
--
I think niphlod is correct. The query you have chosen is rather difficult
in SQL. The "contains" function maps onto the SQL "like" syntax, and that
has no ability to handle a list of targets, only a single string with
wildcards. To achieve the effect you want, you essentially have to create
I would say get in web2py developper group, find the thread about web3py :
web3py important and leave your comments there.
Richard
On Tue, Nov 27, 2012 at 12:40 PM, Daniel González wrote:
> Is there any site where we can post improvements that we want to see in
> web3py? (something like a wish-l
Don't know if it still working but SQL Designer was include in web2py in
the pass... Not sure if it was possible to generate model from it...
Here a article but it in portuguese I think :
http://www.tuxtilt.com/web2py-modelagem-de-dados/
Richard
On Tue, Nov 27, 2012 at 2:02 PM, Felipe Meirelles
just inspect the header with something like firebug and see what of your
css doesn't "override" the default style. Honestly, I couldn't live without
tools like firebug
On Tuesday, November 27, 2012 6:26:05 PM UTC+1, Cliff Kachinske wrote:
>
> Can anyone tell me how to reduce the vertical whi
Hello,
I am not sure if it is a bug or not, but let say I would generate this
bootstrap tooltip :
db[table][field].label = CAT(T(dblabels[concat]), SPAN(' '),
A(I(_class='icon-info-sign'), _href='#', _rel='tooltip',
**{'_data-placement': 'right',
And with CentOS 6.3 and his Python 2.6, this problem doesn't exist !!!
Le jeudi 15 novembre 2012 12:24:16 UTC+1, omicron a écrit :
>
> I use an Ubuntu 12.04LTS, python 2.7 and web2py 2.2.1
> lpod is installed in /usr/local/lib/python2.7/dist-packages, and it's an
> egg
>
> import lpod.document as
what do the * and ** annotations do, have seen them being used in a for
loop being used
[*HELPER()]
??
--
...
Teddy Lubasi Nyambe
Opensource Zambia
Lusaka, ZAMBIA
Cell: +260 97 7760473
website: http://www.opens
Il giorno martedì 27 novembre 2012 13:42:29 UTC+1, Joe Barnhart ha scritto:
>
> I'm running into a weird "lazy tables" bug.
>
I think the bug is real. A simple way to reproduce it is with a new simple
application; if you enter its the interactive web shell:
db=DAL('sqlite://storage.db')
pri
Explained briefly in the latter half of this book section:
http://web2py.com/books/default/chapter/29/02#def...return
Anthony
On Tuesday, November 27, 2012 3:42:18 PM UTC-5, software.ted wrote:
>
> what do the * and ** annotations do, have seen them being used in a for
> loop being used
>
> [*H
Found the solution xmlescape() :
db[table][field].label = CAT(T(dblabels[concat]), SPAN(' '),
A(I(_class='icon-info-sign'), _href='#', _rel='tooltip',
**{'_data-placement': 'right',
'_data-original-title':
T(xmlescape(dbtooltips[
Did that all morning. Couldn't find the right element to touch.
On Tuesday, November 27, 2012 3:11:41 PM UTC-5, Niphlod wrote:
>
> just inspect the header with something like firebug and see what of your
> css doesn't "override" the default style. Honestly, I couldn't live without
> tools like
talking about standard welcome, there is some "white space" between the
and the tag.
A little bit is on the , padding top on .main is 20px (web2py.css,
line 42).
The other thing to look is on the . It has a margin-top of 60px to
counteract the -60px of the body (it's there to keep the navbar
Don't know if it's a design choice, but in
https://github.com/web2py/web2py/blob/master/gluon/html.py#L119 and
following there are typechecks for str and unicode, but you're trying to
use a T something for it, so it doesn't trigger properly
T objects (and LazyT ones) have an xml() attribute
weird, I can't reproduce on the shell (not the web one, I never use that)
with trunk or stable.
On Tuesday, November 27, 2012 9:57:52 PM UTC+1, Nico Zanferrari wrote:
>
>
>
> Il giorno martedì 27 novembre 2012 13:42:29 UTC+1, Joe Barnhart ha scritto:
>>
>> I'm running into a weird "lazy tables" b
Thank you. I appreciate your taking the time to ferret out that
information.
Meanwhile I had a little inspiration of my own. In layout html I commented
out all the calls to response.files.append except for the one to my style
sheet.
Since my style sheet is really simple, it was easy to see w
you really should post what you're trying to do with the table.
lazy_tables=True "activates" the lazy definition of the table, meaning that
it gets really defined only if it's accessed as db.tablename, db[tablename]
or db.__getattr__(tablename).
The only thing you can't do "in the same way" wit
Indeed, it does not happen if you run web2py on the shell. For example,
from sources with:
./web2py.py -S test_app -B
and then input the two simple commands above. But it happens with the web
one, even on PythonAnywhere
2012/11/27 Niphlod
> weird, I can't reproduce on the shell (not the w
Fast work! Thanks
On Tuesday, November 27, 2012 8:16:22 AM UTC-8, Massimo Di Pierro wrote:
>
> Good catch! Fixed in trunk.
>
> On Tuesday, 27 November 2012 03:37:43 UTC-6, roger wrote:
>>
>> Hi there,
>>
>> I just tracked down a thorny problem I was having with Storage.getlist(),
>> and think it
I don't really care for IDEs but this looked interesting:
http://ninja-ide.org
--
Patch submitted http://code.google.com/u/102984225811410587490/ to correct
following problems in IE7:
1) div.flash width is affected from span floated to right within it
2) dropdown-menu doesn't show due to an unnecessary css rule in
web2py_bootstrap.css
However, if the SO is windows xp and
Could you elaborate on how you accomplished this? I'm also trying to
import a json object into my app and parse it. I'm not sure what that
process entails.
On Friday, July 13, 2012 1:34:41 AM UTC-7, Akash Kakkar wrote:
>
> Thanks Vinicius,
>
> Wish I had read your hint earlier, a GET did the
Aha!! I don't know how I missed that before but indeed the event was
throwing an exception and GAE kept on going on its merry way. Found a
couple of things I was doing wrong. The delete event method takes only one
parameter (the query) and once you get the query you can do a straight
'select
Hi Massimo,
is a 2.2.x maintenance release pending in the next week?
regards
Tim
On Wednesday, 28 November 2012 03:42:38 UTC+11, Massimo Di Pierro wrote:
>
> I have been traveling and missed some emails. I am trying to catch up?
> Have I missed anything important?
--
May I ask, in terms of status, where are we up to ?
What is *still left to do* to bring the documentation up to date for
Version 2.2.x ?
Thanks.
On Friday, November 23, 2012 3:46:01 PM UTC+13, Andrew W wrote:
>
> Thanks.
>
> On Friday, November 23, 2012 2:39:41 PM UTC+13, villas wrote:
>>
>>
Do you have any insights on this:
https://groups.google.com/forum/m/?fromgroups#!topic/web2py/cPvuY4mnzs0
--
91 matches
Mail list logo