I actually totally overlooked that it was placed in layout.html
Thanks everybody for the information. I learned a lot again.
With regards,
Mike Veltman
Thanks Annet,
Yes I was thinking about it. But that means that I have to remove the menu.py
out of the models and place it in each view individually.
Thanks for the answer btw.
> Hi Mike,
>
> In the corresponding view you could do:
>
> {{if auth.is_logged_in():}}
> {{=
doing that ?
Thanks in advance.
With regards,
Mike Veltman
se
>
> File gluon/contrib/pymysql/connections.py", line 184, in
> defaulterrorhandler raise errorclass, errorvalue
> gluon.contrib.pymysql.err.InterfaceError: (0, '')
>
> > .
> > If pushing data to redis takes too long it defies the purpose of using
> > redis.
&g
ise errorclass, errorvalue
gluon.contrib.pymysql.err.InterfaceError: (0, '')
> .
> If pushing data to redis takes too long it defies the purpose of using
> redis.
Well its collecting the data and combining it in redis that takes time.
>
> On Oct 9, 11:22 pm, Mike Veltman wrote:
> > Ok, I need to
then I get gluon (database) errors in the functions.
Any idea's or is there a better/ more elegant solution to this problem ?
With regards,
Mike Veltman
w to write jQuery scripts in the view?
Thanks,
Mike
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-the-best-
open-source-software-the-year-171567-1
With regards,
Mike Veltman
> here: http://thadeusb.com/weblog/2010/4/21/compile_web2py_apps_externally
>
> python -c "import gluon.compileapp;
> gluon.compileapp.compile_application('applications/')"
>
> On Sun, Aug 28, 2011 at 10:05 PM, Mike Veltman
wrote:
> > Its
Its pretty annoying because I did know it before.
Does anybody know what the command is to compile from the command line ?
Also is there are website or part of the book that will collect this so I can
add it ?
Thanks in advance.
With regards,
Mike Veltman
fe cd or
installation cd/dvd that automaticly deploys a web2py environment.
Mmmm, it does show that I am a OS man and not a developer ;-)
> There was discussion
>
> http://www.turnkeylinux.org/forum/general/20110107/tklpatch-web2py-framewor
> k
>
> On Jul 20, 8:04 pm, Mike Velt
Thanks, :-)
I probably make it anyway just to play around with it. But then I do not share
by default.
> There was discussion
>
> http://www.turnkeylinux.org/forum/general/20110107/tklpatch-web2py-framewor
> k
>
> On Jul 20, 8:04 pm, Mike Veltman wrote:
> > Firs
regards,
Mike Veltman
; this:
> >>
> >> Field('setup', requires=IS_IN_DB(db(db.setup.ready==True), db.setup.id,
> >> '%(setupname)s'))
> >>
> >>
> >> Anthony
> >>
> >> On Wednesday, July 13, 2011 9:06:03 PM UT
se),
Field('modified_on','datetime',default=request.now,
label=T('Modified On'),writable=False,readable=False,
update=request.now),
format='%(setupname)s',
migrate=settings.migrate)
What I try to get is that the form only shows the setupname of the records
where setup.read==True and then returns setup.id so I can use that.
A addtional would be that the first selection is the first record and not
empty.
Thanks in advance.
With regards,
Mike Veltman
> This is fixed in trunk.
>
Thanks :-)
I noticed that I never added version and stuff, sorry for that.
> On Jun 20, 3:38 am, Mike Veltman wrote:
> > When I dump a table from a SQLite3 db and import it in a mysql database
> > some of the integers do not load.
> >
When I dump a table from a SQLite3 db and import it in a mysql database some
of the integers do not load.
Interesting enough the .id do show up fine.
With regards,
Mike Veltman
> On Tuesday, June 7, 2011 2:26:45 AM UTC-4, Gwayne aka Mike Veltman wrote:
> > > On Monday, June 6, 2011 9:15:27 PM UTC-4, Gwayne aka Mike Veltman wrote:
> > > > And that was it...
> > > >
> > > > Thank you very much. Mmmm, this should go in the
> On Monday, June 6, 2011 9:15:27 PM UTC-4, Gwayne aka Mike Veltman wrote:
> > And that was it...
> >
> > Thank you very much. Mmmm, this should go in the book..
>
> There's also this method of pre-populating a form field:
> http://web2py.com/book/default/chap
And that was it...
Thank you very much. Mmmm, this should go in the book..
> db.lvstorage.lunid = 4
>
> should be (I guess)
>
> db.lvstorage.lunid.default = 4
>
> On Jun 6, 4:12 am, Mike Veltman wrote:
> > I try to pre populate a form and I think I do something
I try to pre populate a form and I think I do something wrong but I stare at
it for a long time and what I do wrong still does not show up.
So maybe some people can make my day better.
Error:
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
Traceback (most recent call last):
File "/home/mv1965/D
I check the database I see a new Row has been
created but I was really trying to update the existing row that has
the id of the Record variable.
I know it's something silly I am missing here - let me know if anyone
can provide some pointers or advice.
Thanks!
Mike
I've just begun to explore web2py and the GAE. On the GAE site, there
are several articles which discuss table design in the absence of
joins. For example, at
http://www.google.com/events/io/2009/sessions/BuildingScalableComplexApps.html,
Brett Slatkin describes "relation index entities" and "me
*DISCLAIMER: NEWBIE ABOARD!***
I'm trying to display a table of the database with 'edit' URL links
(that point to another function) tacked on at the last column. I saw
that the SQLTABLE has a linkto= option but I don't want to change the
look of the link and don't want it to display as the
Okay, that issue is figured out, too.
from google.appengine.api.mail import InboundEmailMessage
message = InboundEmailMessage(request.body)
Now on to figuring out the actual programming details. Thanks for the
quick answers!
-Mike
On Apr 14, 9:52 am, Mike Giles wrote:
> Yep, I was j
this new controller I'd
be golden.
-Mike
On Apr 14, 9:42 am, Anthony wrote:
> On Thursday, April 14, 2011 6:30:55 AM UTC-4, Mike Giles wrote:
>
> > That doesn't seem to work. First, I believe web2py will be looking
> > for an application named _ah to handle the requ
cation)
if __name__ == "__main__":
main()
All I know is that I seem to be outside the basic usage path which is
tough on your first experience with a new framework.
-Mike
On Apr 13, 11:12 pm, Jonathan Lundell wrote:
> On Apr 13, 2011, at 4:06 PM, Mike Giles wrote:
>
>
>
&g
in the default controller of my
app, so I'm curious what I need to do to make the two worlds connect
(i.e. requests that come in through GAE inbound mail, and the rest of
my app).
-Mike
Thanks DenesL! That was definitely the issue.
On Apr 12, 12:21 pm, DenesL wrote:
> Move the requires from inside the field definition to after the table
> definition.
> web2py will not allow a reference to a field that has not been
> created.
>
> On Apr 12, 12:
I know this question has been asked and answered before, but I am
having errors in implementation and I feel like it's something really
silly. If anyone can point anything obvious out that I am missing,
please let me know. Basically I am trying to implement so that two
rows can not have the same co
> http://www.reddit.com/r/programming/comments/gkl77/hashed_passwords_outlawe
> d_in_france/
I thought that by definition all encryption keys should be given to the
government in France. So a source that can not be decrypted by the government
is automatically illegal.
With regards
> > for this case.
> > Thinking cap on...
> >
> > On Apr 6, 4:17 am, Mike Veltman wrote:
> > > Database field is:
> > >
> > > Field('lunid', type='integer',
> > > default=0,
> > > lab
understanding is correct).
@Christopher - I like the concept of having the config file like you
suggested, but it seems out of band with all the other web2py config -
not sure if that's a good or bad thing yet. Still grasping this whole
framework...
Thanks again for the advice everyone.
gt; It is a bug, e.g. sqlhtml.py uses
>
> if default ...
>
> to check for the existence of a field default, and that does not work
> for this case.
> Thinking cap on...
>
> On Apr 6, 4:17 am, Mike Veltman wrote:
> > Database field is:
> >
>
default is 1 and it works fine.
With regards,
Mike Veltman
Trainer and Senior Consultant, Linux and AIX
Phone : +65 96212448
Phone NL : +31 878702983
DID : +65 6464 0432
Fax : +65 6464 0349
Email : mike.velt...@gmail.com
Skype : m.veltman
Profile : w
. Would it be
possible to spawn a separate window and let the original form go on ?
Thanks in advance.
Mike Veltman
Hello,
Im designing an application for license management of some software
that my company produces. The intended workflow is as follows:
1) End-user of product registers on app, approval pending for review
2) When a user in the 'Admin' group logins they have access to a
approval section where the
)
groupadd('Maintenance Users')
groupadd('Download Users')
auth.settings.register_onaccept=lambda form:
auth.add_membership(auth.id_group('Download Users'),form.vars.id)
--
On Apr 1, 12:06
DISCLAIMER: very new to web2py, read book and building first app...
I'm having some brain cramps trying to add some default groups.
Basically I need some default groups set-up when I rollout my
application, like Admins, End-Users, Management - when users register
one of us will manually filter the
g
values, the exception is thrown stating the list must be indexed by
integers.
This problem will only be seen if the table has a PrimaryKey, rather than
using a normal field named "id" as the key.
If this is still not helpful, let me know and I can try a different way to
describe the issu
+888
> +1
>
> 2011/3/11 Massimo Di Pierro
>
> > We all feel very close to our friends in Japan, and we are saddened by
> > what has happened.
With regards,
Mike Veltman
Trainer and Senior Consultant, Linux and AIX
Phone : +65 96212448
Phone NL : +31 878702983
DI
Thanks very much Niphlod and Plumo. I will check out these possible
solutions.
x27;t want to turn warnings off as that defeats the
object of Pylint. I can modify the Pylint plugin to do things before
launching Pylint (and already do so with altering the PYTHONPATH), so
do you know of a way to tell Pylint about the imports web2py has
done?
Cheers,
Mike
one for the
primary text.
I look though styles.css but didn't anything that looked like it is
setting the margin-left. Any thoughts on where else to look? CSS is
not my strong suite.
Thanks for your help so far...
Mike
On Jun 17, 11:04 pm, Anthony wrote:
> Same problem in IE8 on Windo
looks ok.
Any ideas on how to fix this? Is it CSS or a browser setting?
Thanks!
Mike
About a year ago or so, I was really excited about T3. But going back
to web2py now, there is very little mention of it, so is this project
dead?
Is it worth using, or is there another system in development?
>From my past experiences i have found GAE a little slow, is this just
me? With web2py development what has the community found with
deploying to GAE.
t I'd like to use
web2py to take advange of it's other features.
Thanks,
Mike
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group,
tallation. Can you try
> reinstalling web2py?
>
> On Nov 4, 8:21 am, mike wrote:
>
>
>
> > Im currently only using mysql, localy, not yet on GAE
>
> > On Nov 3, 5:18 pm, "mr.freeze" wrote:
>
> > > Does it work locally but not on GAE? I am using
No i do not, do i need all off them? Must of missed that point.
On Nov 4, 1:13 pm, mdipierro wrote:
> Do you have the Mark Hammond win32 extensions?
>
> On Nov 4, 12:02 pm, mike wrote:
>
>
>
> > I have just downloaded it and trying to run it, but Im getting
I have just downloaded it and trying to run it, but Im getting the
following errors:
Traceback (most recent call last):
File "D:\servers3\web2py\web2py.py", line 20, in
gluon.widget.start(cron=True)
File "D:\servers3\web2py\gluon\widget.py", line 810, in start
master = web2pyDialog(r
Im currently only using mysql, localy, not yet on GAE
On Nov 3, 5:18 pm, "mr.freeze" wrote:
> Does it work locally but not on GAE? I am using the same version with
> no problems locally.
>
> On Nov 3, 2:46 pm, mike wrote:
>
>
>
> > Version 1.71.0 (2009-10
Besides the code i have posted, is there any other requirements for
this to work.
On Nov 3, 5:18 pm, "mr.freeze" wrote:
> Does it work locally but not on GAE? I am using the same version with
> no problems locally.
>
> On Nov 3, 2:46 pm, mike wrote:
>
>
>
>
Version 1.71.0 (2009-10-31 01:13:28)
On Nov 3, 3:42 pm, mdipierro wrote:
> Do you have the latest web2py version? Probably not.
>
> On Nov 3, 2:36 pm, mike wrote:
>
>
>
> > Im following the documentation, I have made this model (copy&paste
> > it):
&g
Im following the documentation, I have made this model (copy&paste
it):
buyer = db.define_table('buyer',
Field('name'))
and in my control, i try to do this:
rows = db(buyer.id>0).select().find(lambda row:row.name.startswith
('C'))
return dict(rows)
but im getti
@Horst - I'd love to take a look when it's ready...this is my field.
On May 21, 9:22 pm, Tito Garrido wrote:
> I'm looking forward on it!
>
> On Thu, May 21, 2009 at 9:50 PM, Horst Herb
>
>
> > wrote:
>
> > On Fri, May 22, 2009 at 9:42 AM, JorgeRpo wrote:
>
> > > Hello
>
> > > I'd like to kno
core apps...but then the service wouldn't stay running.
It would start but then immediately shut down.
I've used this same upgrade process for several versions now but this
is first problem I've had...perhaps its time for a clean install?
Mike
On Apr 17, 11:44 pm, Yarko Tymciurak
So if my app is call "myapp" and I click design, it tries to go to
http://.../admin/design/m/y/a/p/p instead of http://.../admin/design/myapp
Any thoughts?
Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&q
s["Content-Type"]="text/xml"
#start the XML data set
mystr = "1110"
#get the data from the database
records = db.executesql("SELECT TOP 10 col1, col2, col3 FROM
tbl1") #MS SQL Server
#build XML from dataset
for row in records:
mystr
he XML data "return xml"
instead of "return dict(xml = xml)"
Hope that helps. I like jqGrid since it has excellent documentation
and hope more of us can make it work with web2py.
Mike
On Mar 23, 5:27 am, ed wrote:
> Hi,
> I've been trying to execute a jquery jqGrid u
Hi all just commenting back to this thread that I have finished
reading the book. And it is a very good book indeed. I bought the
PDF version from lulu. I have a nice wide screen 24 inch iMac so I
could have the book open in one window and work through the examples
in a browser right next to th
Thanks everyone, I just bought the book from lulu. And yes it is a
full 246 pages + additional front matter. Just scanning it now, it
does look like it will be very helpful.
Someone ought to correct that guy's strange page number reference on
the Amazon review. It does the author a disservic
So is the book worth $50? and is it more than 68 pages?
Mike
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To u
ind, but
I imagine some folks might give before getting it going.
I look forward to reading any other comments,
Mike
P.S. by the way very nice framework! Kudos.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&q
Hmm...it's working now. Thanks!
Mike
On Jan 14, 8:18 pm, vince wrote:
> can you make it work with SQLTABLE's header as well? thanks
>
> -vince
>
> On Jan 15, 3:21 am, mdipierro wrote:
>
> > should work without T2. which version do you have?
> > Massim
I recently tried this and it didn't seem to work...so I gather from
this thread that T2 is currently required to define a label in the
model but the plan is for this feature to migrate into the web2py
core?
Thanks for the clarification...
Mike
On Jan 13, 10:54 pm, mdipierro wrote:
> I
Hi Massimo -
I'll be out of town for a few days so I may be a little slow to reply,
but I will have access to my servers and can run any additional tests
that you need.
Thanks again!
Mike
On Dec 24, 11:43 am, mdipierro wrote:
> Thank you. I will send another round of tests.
>
t1 LEFT JOIN t2 ON t1.id=t2.t1 WHERE
> w_rown>=1 AND w_rown<2) GROUP BY t1.name ORDER BY t1.name;'
>
> If not, how should they be fixed (SQL)?
>
> Massimo
>
> On Dec 23, 4:59 pm, mdipierro wrote:
>
> > I think so. This is what we do with Oracle. Tomo
ot;Wes James" wrote:
> On Tue, Dec 23, 2008 at 1:32 PM, mike wrote:
>
> > Thanks for the reply, but just to make it more difficult, what if I
> > have an array of dict objects.
>
> > ex. [dict(test1='test11', test2='test22') ,dict(test1=
Is there anyone who tried this.
This is what I will be trying to do:
Have a new module GAEIdentity and just wrap around the login/out gae
api into it.
Then use it to modify these vars, to that it works with T2/3
session.t2.person_id
session.t2.person_name
session.t2.person_email
7;test11', test2='test22') ]
how to I loop through it.
On Dec 23, 3:15 pm, "Wes James" wrote:
> On Tue, Dec 23, 2008 at 12:44 PM, mike wrote:
>
> > I am using T3, in my setting page I have this var defined:
>
> > response.topMenu = [dict(test1='
I am using T3, in my setting page I have this var defined:
response.topMenu = [dict(test1='test11', test2='test22')]
In my layout.html template I want to use this, this is what I have:
{{for link in response.topMenu:}}
{{=link.test1}}
{{pass}}
I get this error:
AttributeError: 'dict'
What about reusing functions from other applications.
On Dec 23, 2:06 pm, mdipierro wrote:
> you can
>
> {{extend '../../otherapp/views/layout.html'}}
>
> but I suggest copying the layout else the apps will not be portable.
>
> Massimo
>
> On Dec 23, 12:41
Hi Everyone,
As the books notes, limitby isn't fully supported by mssql since the
TOP command always starts at index 0.
So to implement paging I ended up writing my own SQL to mimic the
limitby behavior. The main example I used was from
http://www.15seconds.com/issue/070628.htm and requires SQL
Whats the best practice in having multiple applications using same
layout template.
since we are one the subject, is there a possibility of having one
application use functions from other applications. If so whats the
best practice in doing so?
--~--~-~--~~~---~--~---
Are there any suggestions for template systems with web2py
I would like to have an ability to have small templates that can be
reused througout the main page.
Ex.
maybe have a file -> menuItem.html (would really like the ability to
have separate files for different sub-templates)
{{item}}
Then
In T3, is there a way to change the order of the menu items.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe fr
}}
instead off just loading the layout.html
On Dec 18, 1:30 pm, mdipierro wrote:
> Sorry, I do not understand. How do you get this duplicate code? T3?
> Which page?
>
> Massimo
>
> On Dec 18, 12:22 pm, mike wrote:
>
> > Looking into the code that is gener
Looking into the code that is generated, there is an extra html code
generated
Created by Michal Zak - Powered by web2py
This code is already part of the template, so its an unnecessary
duplicate. Is there a way of removing this?
--~--~-~--~---
201 - 279 of 279 matches
Mail list logo