Hello Nikolai,
I have created a simple billing application that contains customers,
products, hour tracker (simple) and receipt handling.
If interested I could during the weekend put up a english version of it
(Well swedish too it thats better) so you can check it out.
Kenneth
is there
This is just a wild guess but I think CSS is doing it.
Kenneth
I wish to render a select box with size=3 sothat it will display 3
items (instead of default size 1)
I specified it in View as under--
form id= ...etc.
select id=x name=y size=3
optionopt1/option
optionopt2/option
Title is well deserved! Congratulations to the team.
I am aware about:
tblAlias = db.mytbl.with_alias('tblAlias')
Is there a similar thing that we can use for fields in select()?
As in:
... .select( db.mytbl.id, db.mytbl.id*2 as fld2)
+1
2011/9/8 Noel Villamor noe...@gmail.com:
Title is well deserved! Congratulations to the team.
I did look into that initially, but I wrote my app before I knew about
that so the scoping users in accounts bit was already done. I'll bear
it in mind for my next project though.
Thanks!
Dave
On Sep 7, 4:11 pm, Anthony abasta...@gmail.com wrote:
I'm not sure if this is relevant to what you're
About time. ;)
Grats everyone and Massimo in particular!
congrats Massimo, you deserve that
in cgi handler the Path ... what path ?? can anyone give me an
example ??
On 05/09/2011 21:21, pbreit wrote:
Is there some reason your table definitions depart so significantly from what
is shown in the docs?
If I right understand what you mean... I wanted to develop a plugin that
do not create the tables in the db when it's installed in the app but
let the
Thanks for the information. But it seems that I have to buy a licence
to get the full source code. I will look for other solutions.
Kenji
On 9月8日, 午前2:59, Richard Vézina ml.richard.vez...@gmail.com wrote:
Hello Kenji,
You will maybe find the code of the actual datepicker here
+1
2011/9/7 wwwgong wen.g.g...@gmail.com
Congratulations!
more details from here:
http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0current=10last=1#slideshowTop
--
http://martin.tecnodoc.com.ar
On Thu, 08 Sep 2011 10:05:50 +0300
Kenneth Lundström
kenneth.t.lundst...@gmail.com wrote:
Hello Nikolai,
I have created a simple billing application that contains customers,
products, hour tracker (simple) and receipt handling.
If interested I could during the weekend put up a english
http://stackoverflow.com/questions/119961/select-tags-size-attribute-through-css
2011/9/8 Kenneth Lundström kenneth.t.lundst...@gmail.com
This is just a wild guess but I think CSS is doing it.
Kenneth
I wish to render a select box with size=3 sothat it will display 3
items (instead of
hey guys ,
anyone can tell me how to use cgi in web2py ??
@Kenneth Lundström, @Martín Mulone,
I agree that this is an issue related to css setting.
Somewhere in a /static/css file(s), there is a setting which is
forcing the select box of size=1.
Same select box is accepting size=1 in a standalone html file
(outside of web2py).
Can anybody pl. point out
@Kenneth Lundström, @Martín Mulone,
I agree that this is an issue related to css setting.
Somewhere in a /static/css file(s), there is a setting which is
forcing the select box of size=1.
Same select box is accepting size=1 in a standalone html file
(outside of web2py).
Can anybody pl. point out
hey guys ,
anyone can tell me how to use cgi in web2py ??
If in doubt, always check the online book first...
http://www.web2py.com/book/default/chapter/11?search=cgi
Best regards,
Stefaan.
My jQuery scripts work great, as long as I embed them in the the view
itself.
When I move them out of the view into a file such as 'static/js/some-
jjquery.js', ajax calls cause the script to stop working.
If I comment out the ajax calls, the script works, except for
executing the ajax, of
Can you show some example code? How are you loading the JS files, making the
Ajax calls, calling functions, etc.?
On Thursday, September 8, 2011 8:01:20 AM UTC-4, Cliff wrote:
My jQuery scripts work great, as long as I embed them in the the view
itself.
When I move them out of the view
Seeing some code would help. I also wonder if you have encapsulated your
external js code in something like:
jQuery(document).ready(function() {
});
believe me... web2py in a sharehost using CGI it is very SLOW ! (tested in
iPage)...
On Thu, Sep 8, 2011 at 12:30 PM, Web2Py Freak halna...@gardeniatelco.comwrote:
there is nothing about using CGI just :
web2py provides a file cgihandler.py to interface to CGI.
--
Sebastian E. Ovide
Hi listmembers,
I have created a page that contains a list of customers. Every row has
an link to edit it. This link opens a modal window with nyroModal.
But how do I change the size of the modal window?
Kenneth
Best kept secret... not anymore.
Thanks to Massimo and all contributors.
web2py provides a file cgihandler.py to interface to CGI.
If still in doubt, use google:
http://web2py.com/AlterEgo/default/show/93
(As far as I understand, a cgi program expects input via stdin, and
sends output to stdout,
but I'm by no means an expert)
Best regards,
Stefaan.
Wow !
On Sep 8, 7:55 am, DenesL denes1...@yahoo.ca wrote:
Best kept secret... not anymore.
Thanks to Massimo and all contributors.
The 'welcome' app is intended to be a scaffolding upon which to build an
app. The app selector you suggest might be more appropriate for inclusion in
the 'admin' app (where the 'welcome' app could be one of the choices).
On Thursday, September 8, 2011 5:18:42 AM UTC-4, Ramos wrote:
I think
That would be awesome! Looking forward to it.
On Sep 8, 3:05 pm, Kenneth Lundström kenneth.t.lundst...@gmail.com
wrote:
Hello Nikolai,
I have created a simple billing application that contains customers,
products, hour tracker (simple) and receipt handling.
If interested I could during the
Congratulations!
I'm glad to see CakePHP and web2py receive an award in the same category.
IMHO, these truly are top frameworks for PHP and python.
Yep i agree.
2011/9/8 Anthony abasta...@gmail.com
The 'welcome' app is intended to be a scaffolding upon which to build an
app. The app selector you suggest might be more appropriate for inclusion in
the 'admin' app (where the 'welcome' app could be one of the choices).
On Thursday,
But the idea of António is pretty nice...
Only one problem, the speed of development web2py seems to generate obsolete
code in the applications published that force Massimo to launch adopt an App
movement... I don't know if it as work until now... I think this should be
fixed first, I mean make
PING
Richard
On Wed, Aug 17, 2011 at 4:43 PM, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Ok, forget notice, I think, I just should use something like this :
db.table2.linked_self.requires=\
IS_EMPTY_OR(IS_IN_DB(db,'table2.id','%(field1t2)s',\
SQLite is a file DB so it the file is locked when there is operation in
process... I think it become pretty slow when multiple users are on at the
same time... I am not sure if it only allow concurrent access management
correctly...
Richard
On Wed, Sep 7, 2011 at 3:18 AM, Web2Py Freak
Freak,
which one?
a) you want to run CGI inside web2py?
b) you want to run web2py as CGI?
mic
2011/9/8 stefaan stefaan.hi...@gmail.com:
web2py provides a file cgihandler.py to interface to CGI.
If still in doubt, use google:
http://web2py.com/AlterEgo/default/show/93
(As far as I
Congratulation Massimo and core developpement team...
Richard
On Thu, Sep 8, 2011 at 9:37 AM, LightDot light...@gmail.com wrote:
Congratulations!
I'm glad to see CakePHP and web2py receive an award in the same category.
IMHO, these truly are top frameworks for PHP and python.
Hello,
I am using web2py 1.98.2.
The problem is that below instruction fails with error message:
TypeError: insert() keywords must be strings
db.table.insert(**dictionary)
While db(query).update(**dictionary) works find.
For now, I have to use as a workaround as below.
bulk_insert(
Congratulation!!
This is something members of this group knew already anyway :) Although,
it's great to have recognition on black and white... or in html, for
everybody to see it. ;)
On 8 September 2011 14:37, LightDot light...@gmail.com wrote:
Congratulations!
I'm glad to see CakePHP and
How your dict looks like?
http://zerp.ly/rochacbruno
Em 08/09/2011 11:10, seongjoo seongjoo@gmail.com escreveu:
Hello,
I am using web2py 1.98.2.
The problem is that below instruction fails with error message:
TypeError: insert() keywords must be strings
db.table.insert(**dictionary)
Fixed - Thanks Massimo, that was fast!
-Jim
http://code.google.com/p/web2py/issues/detail?id=412
On 9/7/2011 4:30 PM, Jim Steil wrote:
Submitted - http://code.google.com/p/web2py/issues/detail?id=412
-Jim
On 9/7/2011 4:25 PM, Martín Mulone wrote:
I think is a bug, please report it:
I'm as eager to know as you are.
So i tried a few things and found the following to work, though
not as they way you'd like it to work:
- [start service snippet]
@service.soap('GetQuote1', returns={'result':{'c':[{'c':float}],'b':
{'name':str,'value':str}}}, args={'symbol':str})
def
From the sqlite site:
SQLite uses POSIX advisory locks to implement locking on Unix. On
Windows it uses the LockFile(), LockFileEx(), and UnlockFile()
system calls. SQLite assumes that these system calls all work as
advertised. If that is not the case, then database corruption can
result. One
Another good news!
http://www.infoworld.com/d/open-source-software/bossie-awards-2011-the-best-open-source-application-development-software-171759-0current=10last=1#slideshowTop
On Sep 8, 2:01 am, Mike Veltman mike.velt...@gmail.com wrote:
I dont know if someone else already mentioned it. But
And congratulations again to all users and contributors!
On Sep 8, 2:01 am, Mike Veltman mike.velt...@gmail.com wrote:
I dont know if someone else already mentioned it. But web2py is in the Bossie
awards. ;-)
Congrats
http://www.infoworld.com/d/open-source-software/bossie-awards-2011-th...
No.
On Sep 8, 2:07 am, Noel Villamor noe...@gmail.com wrote:
I am aware about:
tblAlias = db.mytbl.with_alias('tblAlias')
Is there a similar thing that we can use for fields in select()?
As in:
... .select( db.mytbl.id, db.mytbl.id*2 as fld2)
Thank you, all. Web2Py books has been really helpful in understanding
this generics feature.
On Aug 30, 3:36 pm, pbreit pbreitenb...@gmail.com wrote:
If you only use generics during development (good practice), put this in
db.py or another model file:
response.generic_patterns = ['*'] if
This is a problem indeed.
Anyway, I think it would be a good idea to have a convention about
icons representing apps. Listing all the apps publicly does not belong
in welcome and it is a security hazard. there could be a public page
in admin that does that and admin can be disabled anyway.
On
Please open a ticket.
On Sep 8, 8:57 am, Richard Vézina ml.richard.vez...@gmail.com wrote:
PING
Richard
On Wed, Aug 17, 2011 at 4:43 PM, Richard Vézina ml.richard.vez...@gmail.com
wrote:
Ok, forget notice, I think, I just should use something like this :
Running web2py under CGI will result in more headaches then running is
in proxy mode.
On Sep 8, 9:07 am, Michele Comitini michele.comit...@gmail.com
wrote:
Freak,
which one?
a) you want to run CGI inside web2py?
b) you want to run web2py as CGI?
mic
2011/9/8 stefaan
What takes time is not fixing the bugs, it is reading emails and
reproducing the errors.
If your email is short and to the point and contains enough code that
runs out of the box and reproduces the bug, it is easy to fix.
This was the case.
massimo
On Sep 8, 9:41 am, Jim Steil j...@qlf.com
does the web2py-adm...@googlegroups.com still exists?
What do they have about the new admin they talked about months ago?
2011/9/8 Massimo Di Pierro massimo.dipie...@gmail.com
This is a problem indeed.
Anyway, I think it would be a good idea to have a convention about
icons representing
I came a cross this file and wonder what it does.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
path = os.path.dirname(os.path.abspath(__file__))
except NameError:
path=os.getcwd() # Seems necessary for py2exe
if not path in sys.path:
sys.path.append(path)
Remco,
I'm another guy struggling with IIS.
Following the Receipt 2 for ISAPI and I'm lost at 2.3.2. If possible,
can you explain what I should do from here.
So far, virtual directory ochibaapp (Renamed it from appname) is
created under Default Web Site. I have setup junction for C:\w2p
I have posted the code in 'View' file at
http://stackoverflow.com/questions/7343374/web2py-view-height-size-of-a-select-box-in
So avoiding the reposting of code here.
---Vineet
On Sep 8, 4:01 pm, Vineet vineet.deod...@gmail.com wrote:
@Kenneth Lundström, @Martín Mulone,
I agree that this is an
perhaps you want something like this?:
form#yourid select {height: 50px;}
2011/9/8 Vineet vineet.deod...@gmail.com
I have posted the code in 'View' file at
http://stackoverflow.com/questions/7343374/web2py-view-height-size-of-a-select-box-in
So avoiding the reposting of code here.
I'm running web2py on PostGreSQL. I accidentally created a model that
specified a table with column type double when I needed decimal.
Now I'm trying to change it from double to decimal, with no luck. I
deleted all the records, and have used
'migrate=True,fake_migrate=True', and all the
hello i´m testing ajax auto completion example as said in the book
it works fine
Now i want to return not the months for the user to select but an image
because i´m testing graphviz dot language!
the user writes for example
a-b
an image is created . It see it in the image in the static folder
Drop the table... and recreate it... Use pgAdmin or erase your db model
reload your app... paste your model reload...
Don't need fake migrate just migrate true...
Richard
On Thu, Sep 8, 2011 at 1:36 PM, Eric hu5...@gmail.com wrote:
I'm running web2py on PostGreSQL. I accidentally created a
I forgot that I had create it [?], here it is :
http://code.google.com/p/web2py/issues/detail?id=382q=list
Thanks to taking care...
Richard
On Thu, Sep 8, 2011 at 11:51 AM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Please open a ticket.
On Sep 8, 8:57 am, Richard Vézina
For myself I made a kind of gate login page like ubuntu... So as long as you
are not loged on you don't access the page and see noting except the login
page...
But, for sure it's not applicable to all situation...
The only problem with my design is that I can't byte compile cause I return
from
+1
I am new to web2py (I've been using Django), and I am confused about a
couple of things.
First, the presence of multiple controllers.
I am trying to build a main app, called (say) www.example.com.
So I would like to have something like www.example.com/index.html
But if I use the default.py
This is web2py.py (starts web2py) except you have an extra line
On Sep 8, 11:43 am, annet annet.verm...@gmail.com wrote:
I came a cross this file and wonder what it does.
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import sys
try:
path =
Wow .This is very big!
Congrats Massimo and all the web2py developers!
On Thu, Sep 8, 2011 at 8:45 PM, Ivica Kralj ivicakr...@gmail.com wrote:
Congratulation!!
This is something members of this group knew already anyway :) Although,
it's great to have recognition on black and white... or in
Never heard of it before.
On Sep 8, 11:01 am, António Ramos ramstei...@gmail.com wrote:
does the web2py-adm...@googlegroups.com still exists?
What do they have about the new admin they talked about months ago?
2011/9/8 Massimo Di Pierro massimo.dipie...@gmail.com
This is a problem
I'm Happy Congrat!
On Sep 7, 10:59 pm, wwwgong wen.g.g...@gmail.com wrote:
Congratulations!
more details from
here:http://www.infoworld.com/d/open-source-software/bossie-awards-2011-th...
Beunick App sitting on top of Web2py has a new version.
Thanks to Massimo for this great Web2py Tool.
Check it out on: http://www.beunick.com
Drop us some feedback if you can.
Cheers,
Yannick P.
Hello everyone,
1)
I know web2py provides the DAL, however I have already Python code
(let's call it third party) that connects to a MySql database, has
some classes that hold the data, and returns objects that contain data
that I need to display in the website and not just display but of
course
Luca,
multiple controllers allow you to break your code into logical chunks, so
big projects are more manageable. there are a few different options for URL
routing to make the URLs your user sees something different from the
underlying structure. Take a look in the web2py book for info on
I am new to web2py (I've been using Django), and I am confused about
a couple of things.
Welcome to web2py.
First, the presence of multiple controllers.
Every time a function in the controller is called the whole file is
compiled. By having smaller controller you get an faster application.
congratulations everyone and thank you Massimo for creating, leading and
keeping the Web2py project so awesome. This is well deserved recognition for
a project that rocks in so very many ways.
The mp1.png file is in the static directory of my application
The following views/default/index only gives an empty page with
None in the top left corner.
{{left_sidebar_enabled=right_sidebar_enabled=False}}
{{extend 'layout.html'}}
{{if 'message' in globals():}}
h1{{=message}}/h1
Not sure but I think there is a mistake in your view that should be ok
without it
The # not work to comment a line in the view so try remove your line
completly or you may try with !-- -- html commenting caracter... But those
don't prevent web2py to interpret the {{=}}, so what I usually do si to
Thanks for the links. I'm still trying to figure out how much to look
for the framework to do and how much to look for client-side
solutions. This helps.
Ian
On Sep 7, 5:48 pm, Anthony abasta...@gmail.com wrote:
Since developers will have different preferences for multiselect widgets and
it is
You can select db.mytbl.id*2, but I don't think you can reference the result
with an alias -- you'd have to reference it with something like
rows[0]['(mytbl.id
* 2)']. Of course, for convenience, you could define fld2='(mytbl.id * 2)' and
then do rows[0][fld2].
What do you want to do with
Have you shown us your entire index() function? If so, your view file isn't
getting called at all because your index function is not returning a
dictionary. Instead, web2py is simply returning whatever your function
returns, which is probably None if the last line is a call to plt.savefig().
Richard,
To be sure about the comment I made the following view, which had the
same None result
{{extend 'layout.html'}}
p Outfile from Matplotlib
img src={{=URL('static','mp1.png')}}/
/p
regards,
Richard
Op 8-9-2011 22:11, Richard Vézina schreef:
Not sure but I think there is a mistake
Hi,
I used this css as is (although I did change the background colour to
match my site. however... I'm using the dat picker on a field
displayed in a jquerydialog. the datepicket pops up - behind the
dialog box. I think the z-indexvalue needs bumping up (or is it
down?)
Looks good tho :O)
On
The view is not executed. Adding return dict() doesn't have effect. Even
this dict() does not lead to an error.
{{extend 'layout.html'}}
{{if 'message' in globals():}}
p Outfile from Matplotlib
img src={{=URL('static','mp1.png')}}/
/p
return dict()
Op 8-9-2011 22:24, Anthony
The view need a controller to return a dict variable at least one to be
executed I think...
So maybe your controller has noting to do so you just have created a view
with the code that you want to be executed (the code that you showed us)...
Try returning a empty var from your controller if you
I have the same problem is you find a solution...
I will try with z-index, but I am not sure if it will work, should pick one
upper the dialog plugin use if it's the source of the problem.
Richard
On Thu, Sep 8, 2011 at 4:34 PM, Paul Gerrard p...@gerrardconsulting.comwrote:
Hi,
I used this
.calendar{
z-index: 1000;
position: relative;
display: none;
border-right: 1px solid #808080;
border-left: 1px solid #808080;
border-bottom: 1px solid #808080;
font-size: 11px;
color: #9A9A9A;
cursor: default;
background: #fafaed;
font-family:
Wich version of web2py version do you use... The problem you describe hab
been a issue in the past that have been fixed now...
Maybe you have a old version of web2py?
Richard
On Thu, Sep 8, 2011 at 4:16 PM, monotasker scotti...@gmail.com wrote:
Thanks for the links. I'm still trying to figure
It seems that you can initialise dialog with a given zIndex
And the default zIndex that I have in the js is zIndex: 1000
I just read the js and it seems to change between 1000 and 1001... I try
with 1002 in the .calendar css class of web2py datepicker and it works
find.
Don't know maybe adding
God... The fix seems to work only for the first trigger of the popup...
Richard
On Thu, Sep 8, 2011 at 5:25 PM, Richard Vézina
ml.richard.vez...@gmail.comwrote:
It seems that you can initialise dialog with a given zIndex
And the default zIndex that I have in the js is zIndex: 1000
I just
No, you need to add return dict() to the end of you index() function in your
controller -- not to the view file.
Anthony
On Thursday, September 8, 2011 4:45:51 PM UTC-4, Richard wrote:
The view is not executed. Adding return dict() doesn't have effect. Even
this dict() does not lead to
Ok, putting much more then the basic z-index init of dialog works find at
least...
I don't see when you want a datepicker to be behind an other element?!
Richard
On Thu, Sep 8, 2011 at 5:27 PM, Richard Vézina
ml.richard.vez...@gmail.comwrote:
God... The fix seems to work only for the first
haha
I wasn't understand why he was putting that there and I didn't realise it
was a mistake ;-)
Richard
On Thu, Sep 8, 2011 at 5:30 PM, Anthony abasta...@gmail.com wrote:
No, you need to add return dict() to the end of you index() function in
your controller -- not to the view file.
Components with buttons that are meant for client side scripting are
being reloaded via ajax post request (I think), shouldn't this
behavior be limited to the submit button?.
On Thursday, September 8, 2011 12:52:42 PM UTC-4, Vineet wrote:
I have posted the code in 'View' file at
http://stackoverflow.com/questions/7343374/web2py-view-height-size-of-a-select-box-in
So avoiding the reposting of code here.
I left a comment on SO -- still can't replicate the
Having multiple controller files gives you the ability to organize your code
and URLs and it works nicely. To hide the app name and/or controller name,
look at the router.example.py file.
All the code in all the files in the models directory is executed on each
page request so you can put your
It should be fine using your other database access library. I think you'll
probably want to import the libraries from each controller file. And won't
need to put any of that stuff in model files.
I think reading chapters 00-07 in the Book are a good start (08 if you are
using
After some thought, I'm really liking this design for virtual
fields... what if lazy/virtual fields were declared directly in
db.define_table()? Like so:
db.define_table('item',
Field('unit_price','double'),
Field('quantity','integer'),
Looks nice. beunick is a bit of a strange name. The first thing I think of
is eunuch which is not the most pleasant thought.
What? cant believe it
see this
http://code.google.com/p/web2pyadmin2/
2011/9/8 Massimo Di Pierro massimo.dipie...@gmail.com
Never heard of it before.
On Sep 8, 11:01 am, António Ramos ramstei...@gmail.com wrote:
does the web2py-adm...@googlegroups.com still exists?
What do they have
Thanks for your reply, Richard. I dropped the table, and when I went
to reload and got this traceback (same one I got before I dropped the
table). db_wizard.py is where the table is defined.
Traceback (most recent call last):
File /home/www-data/web2py/gluon/restricted.py, line 192, in
Freak, what hosting options do you have? Do you already have a hosting
provider? Which one? What service level do you have? Do you know what your
provider's Python hosting capabilities are?
maybe be-unik
2011/9/8 pbreit pbreitenb...@gmail.com
Looks nice. beunick is a bit of a strange name. The first thing I think
of is eunuch which is not the most pleasant thought.
And settings.migrate is set to 'True'.
On Sep 8, 1:45 pm, Richard Vézina ml.richard.vez...@gmail.com wrote:
Drop the table... and recreate it... Use pgAdmin or erase your db model
reload your app... paste your model reload...
Don't need fake migrate just migrate true...
Richard
On
Your work-around works well Anthony. Thanks.
What I intend of doing is querying just a subset of a list:string
field (e.g. mytblalias.data[0:6] which in select would appear as:
SUBSTR(mytblalias.data,1,(7 - 1))
The field results, however, turned out to be raw with the '|' showing
as separators
Yeah, that was dropped. It was initiated by the guy who did the redesign of
the current admin app, but he moved on.
Anthony
On Thursday, September 8, 2011 6:11:47 PM UTC-4, Ramos wrote:
What? cant believe it
see this
http://code.google.com/p/web2pyadmin2/
2011/9/8 Massimo Di Pierro
1 - 100 of 128 matches
Mail list logo