had installed a windows
> distribution of Python before I had web2py, and I the installation
> process set this up.
>
> The extra 'w' on the Python file extension means 'don't open a console
> window'
>
> Chris
>
> On Mar 22, 3:52 pm, Iceberg wro
7;http://%s:%s'% (detectAddr, bindPort)).read()
except IOError: pass # the bindAddr and bindPort is vacant
else: sys.exit('%s:%s is occupied'%(detectAddr,bindPort))
.. # Go on to start web2py main process
This code can let novice make fewer mistakes.
Regards,
Iceberg
--~--~-
Tried but that does not help. :-P
We need something similar to the effect of hstart.exe's:
hstart /NOCONSOLE "web2py.exe -i 0.0.0.0 -a """" -t"
On Mar22, 11:06pm, mdipierro wrote:
> try
>
> web2py -a blah -p 8000
>
> Not sure.
>
> On
eat and
really helps, but users need to get permission for that at first.
On Mar22, 12:13pm, Boris Manojlovic
wrote:
> Hi Iceberg,
>
> please try hstart program as it is created just for "problems" like
> yours.http://www.ntwind.com/software/utilities/hstart.html
>
> hop
s.org/showthread.php?t=728170
But I don't know how things go in current web2py world. Can we just
have a web2py.exe as current situation, and one more web2pyw.exe that
does not have a console window?
Thanks for any hint.
Regards,
Iceberg
--~--~-~--~~~---~--~~
Yo
nsole:
WARNING:root:WEB2PY CRON Call returned code 1:
If I deploy it in C:\SOLID\web2py, everything runs smooth.
So there might be some dir issue in cron's launcher. Please take a
look. Thanks in advance!
Regards,
Iceberg
--~--~-~--~~~---~--~~
You received this message becau
I found that web2py 's compile does not generate enough myapp/modules/
*.pyc
This happens when there is only *.py but none of *.pyc in myapp/
modules. The compile just ignores those *.py at all. A forced import
on each of *.py file in this directory should be the way to fix it.
--~--~-
On Mar7, 7:40pm, Iceberg wrote:
> On Jan10, 11:53pm, mdipierro wrote:
>
> > @Robin,
>
> > I propose I change and I already implemented in in trunk.
>
> > def f(form):
> > if form.vars.a!=form.vars.b:
> > form.errors.a='must be same as
On Mar9, 3:38am, mdipierro wrote:
> I am planning to release 1.58 on Tuesday. I am waiting for
> confirmation that we have DB2 support.
>
> Is there anything else that should be in and I have forgotten about?
> If so, please email em personally.
>
> Massimo
Just curious. You said in some post th
On Mar9, 7:17pm, AchipA wrote:
> On Mar 9, 8:22 am, Iceberg wrote:
>
> > 1. In the crontab file, usually we write
> > #0-59/1 * * * * root
> > /path/to/some/executable_file
> > But I found that, on Windows platform, "/" ar
Hi Achipa,
While waiting for the ultimate patch for hardcron, I manage to give
the current web2py 1.56.4 's cron some other test. Some found issues
are listed below. They are not necessarily to be fixed, but if you can
somehow improve them, that is better.
1. In the crontab file, usually we writ
com/menu2/invitro.htm
>
> Massimo
>
> On Mar 8, 11:33 am, Iceberg wrote:
>
> > I would have agree with Massimo about "not to include too many this
> > and that in the base distribution". But, when talking about the menu,
> > I beg a reconsideration.
--~--
> > On Mar 8, 1:09 am, weheh wrote:
> >
> > I've read that this is possible with t2, but how about 1.57? I've
> > tried it with 1.57 and it doesn't seem to work. Any suggestions for
> > how to do nested multi-level menus with the current version?
On Mar8, 11:38pm, mdipierro wrote:
> The problem
On Jan10, 11:53pm, mdipierro wrote:
> @Robin,
>
> I propose I change and I already implemented in in trunk.
>
> def f(form):
> if form.vars.a!=form.vars.b:
> form.errors.a='must be same as b'
> form.errors.b='must be same as a'
>
> if form.accepts(,onvalidation=lambda for
Hi Massimo,
In old web2py versions, developers can update a single record by:
# Suppose you have already inserted a record and then search it into a
variable "me".
>>> me.update_record(name="Max")
>>> me.name
'Max'
The feature still exists in latest web2py 1.57 but missing
descriptions in DAL d
One more tips for new comers. You can find an example named "status"
in here:
http://mdp.cti.depaul.edu/examples/default/examples
or just here:
http://mdp.cti.depaul.edu/examples/simple_examples/status
to know every available resources in request or response.
Btw, by default recent versions o
On Mar4, 9:45pm, mdipierro wrote:
> On Mar 4, 6:45 am, Iceberg wrote:
>
> > The last problem is that out-of-box scaffold20090301b.tar on web2py
> > 1.56.4 always reports:
> > TypeError: unsupported operand type(s) for %: 'lazyT' and 'dict'
>
On Mar2, 4:41am, Alexandre Andrade wrote:
> Today I was fixed css and really put authentication to work.
>
> So, at this point, scaffold has:
>
> - a five spaces layout (logo, section menu, left column, center column,
> right column and footer.
> - a working authentication
> - a secundary menu s
On Mar3, 10:36pm, mdipierro wrote:
>
> On Mar 2, 8:33 pm, Iceberg wrote:
>
> > On Mar2, 12:22pm, mdipierro wrote:
>
> > > Lots of small bug fixes in the last week so I posted 1.57. Please give
> > > it a try and let me know.
>
> > > New featur
On Mar2, 12:22pm, mdipierro wrote:
> Lots of small bug fixes in the last week so I posted 1.57. Please give
> it a try and let me know.
>
> New features include:
> 1) admin edit page via ajax and keepalive (thank you Boris)
> 2) language translation page has [delete] buttons
> 3) fixed (hopefull
On Feb26, 9:27pm, AchipA wrote:
>
> On Feb 26, 1:44 pm, Iceberg wrote:
>
> > On Feb26, 7:35pm, AchipA wrote:
>
> > > On Feb 26, 5:23 am, Iceberg wrote:
>
> > > > When I import
> > > > this module and change it (indirectly), I still do n
On Feb26, 7:35pm, AchipA wrote:
> On Feb 26, 5:23 am, Iceberg wrote:
>
> > I don't really understand how cron patch works but, since the global
> > crontype equals to "Soft" by default, is there some reason causing the
> > win distrib to detect it
off puzzled myself. I can confirm that the windows distrib runs
> softcron, BUT, running it from the command line, from sources, DOES
> result in default hardcron. I'm not sure what the difference is
> between the distribution and source 'modes' are but apparently the two
>
+1 for improving documents, of course.
I am not sure what Achipa means about changelog, but I believe the
developer of a new feature is the most appropriate person to write
some description about:
1. what is it;
2. how to use it?
3. background info (if any)
I am afraid that changelog can no
On Feb23, 0:19am, Iceberg wrote:
> On Feb22, 8:37pm, AchipA wrote:
> > I think I know what's causing the issue, try the following as your
> > web2py.py instead of the original one:
>
> > #!/usr/bin/python
> > # -*- coding: utf-8 -*-
>
> > import os
On Feb22, 8:37pm, AchipA wrote:
> I think I know what's causing the issue, try the following as your
> web2py.py instead of the original one:
>
> #!/usr/bin/python
> # -*- coding: utf-8 -*-
>
> import os
> import sys
>
> path = os.path.dirname(os.path.abspath(__file__))
> if not path in sys.path:
On Feb22, 7:53am, AchipA wrote:
> On Feb 21, 9:12 pm, David Marko wrote:
>
> > I would also appreciate some working example/appliance for using
> > *cron. Its very usefull thing!!!
>
> web2py comes with an example (cleaning sessions), see applications/
> admin/cron ! Do you think additional exam
2PY CRON done
INFO:root:WEB2PY CRON Call returned: default applications appear to be
installed
already
web2py Enterprise Web Framework
Created by Massimo Di Pierro, Copyright 2007-2009
Version 1.56.2 (2009-02-08 21:49:34)
Database drivers available: SQLite3, MySQL
On Feb22, 7:53am, AchipA wrote:
&
erved, does not
guarantee execution precision".
Did I miss something? Thanks in advance.
Iceberg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group,
kage targets to this
world too. Besides, pyodbc claims that it supports "almost any
database", and it uses MIT license.
Comments are appreciated.
Iceberg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"w
Hi gentlemens,
web2py 1.56 with Achipa's cron patch is great. I just do a:
copy applications/admin/cron applications/myapp/cron
and then modify the applications/myapp/cron/crontab, replace the
"admin" by "myapp", then the long time puzzle "old sessions" ( see
http://groups.google.com/group/web2
Thanks for all the meaningful discussion here. I did learn something.
When talking about generating the menu, perhaps you will like my trick
here.
http://groups.google.com/group/web2py/browse_thread/thread/4988b16cb2787b57
You might already notice that, if your application have only one
cont
Hi Massimo,
A further question for this topic.
I remember one of the old topic in this forum group mentioned that, in
every action we do not need an explicit db.commit() because web2py
automatically does it when no exception is raised during the action.
So I wonder whether web2py automatically
will be added to GQLDB eventually.
>
> Either way, to prepopulate a db on GAE, you have to do it over a
> series of requests, because each request can only be 10 seconds max.
> See bulk uploader:http://code.google.com/appengine/articles/bulkload.html
>
> Robin
>
> On Jan 2
Familiar discussion to me because I raised same topic before. :-)
Glad to see LEGEND is in, it is not too late for me to quit the habbit
of TAG.LEGEND. :-P
Seriously speaking, I still suggest to make TAG. more noticeable
(e.g. the first one in HTML helper section) in the builtin document as
umors, such as:
http://highscalability.com/google-appengine-second-look
But I still can't believe the performance is as bad as what I
mentioned above.
Did I miss something? Do you guys encounter same problem when playing
with GAE? Does your application successfully
Hi folks,
After some refinement, I use this way to define menus in my default.py
# At the beginning of my default.py
response.automenu=[ # Such as
[('func_name1','menu_name1',absolute_url1), ...]
('tutor0','Tutorial 0',URL(r=request,f='tutor0')),
('tutor1','Tutorial 1',UR
Hi there,
T2 is supposed to support hierachical menu. But I am not familiar
enough to make it run perfectly. What I did:
1. download T3 package and only use it as a T2
2. In my db.py of my application I do:
from applications.t3.modules.t2 import T2
t2=T2(request,response,session,cache,T,db)
ons.
Besides, it would be nice if the following pattern will also be
supported.
{{=datetime.date(2009,1,8) # this trailing comment also causes
error}}
I guess this problem is caused by the new template engine. (Don't get
me wrong, 6 times faster is awesome. ^_^)
Iceberg
--~--~-~--
--- Original Message ---
From:mdipierro
> On Jan 5, 9:02 pm, Iceberg wrote:
> > On Jan6, 5:26am, Fran wrote:
> > > it's all working for me now with latest
> > > src & your new winservice.py :)
> > > Al
--- Original Message ---
Date:Mon, 5 Jan 2009 20:46:37 -0800 (PST)
Subject: [web2py:14607] Re: web2py.exe can not start as windows service
---
> I do not know what this means. Meanwhile I have incorporated Tim's
> patch into
>
> http://
382f8fcb7de0534/b7947df750e2a8de?lnk=gst&q=windows+service#b7947df750e2a8de
"pythoncom will register a class, so if you use web2py.exe, it
may cannot get the class file and run. . how
to make a zipped python exe file into a windows service "
Seems that is the proble
rting as a service is only possible for a source
distribution. So I think Fran's problem would be a little easier than
mine. :-S
Thanks for your concern.
Iceberg
On Jan5, 10:53pm, Timothy Farrell wrote:
> Sorry guys. I generally only watch the list at work. Being it a holiday,
> I
hat it does not need i18n at all!
nav=[TR(TD( # Iceberg at 21cn dot com prefers this style of page
navigation :-)
INPUT(_type='button',_value='|
<',_onclick='javascript:location="%s"'%self.action
(args=request.args,vars={'_page
eturn {'Oops':A('Try again',_href=URL(r=request,f='create'))}
return {'Create':t2.create(db.config)}
Thanks in advance.
Iceberg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
&qu
On Jan5, 4:22am, Fran wrote:
> On Jan 4, 4:53 pm, mdipierro wrote:
>
> > could you try
> > import gluon.winservice
>
> Yes, that works :)
> Both 1.54 bin & 1.55rc4 src
>
> F
Excuse me, but what do you mean "that works"?
In my 1.55rc4 bin, I got:
C:\DOWNLOAD\web2py>web2py -S welcome
...
Versio
tial
nudge to trigger all the magic
__trigger()
return 'started'
def usual_action(): # Just to show that normal requests are served as
usual
return {'foo':'bar'}
Sincerely,
Iceberg, 2009-Jan-04, 20:54(PM), Sun
--~--~-~--~~~
/browse_thread/thread/8382f8fcb7de0534/b7947df750e2a8de?lnk=gst&q=windows+service#b7947df750e2a8de
I am writing to ask whether situation changes since then. Too bad that
web2py.exe can not be deployed on a customer's PC with windows XP but
without python. :-S
Thanks in advance
TE):
return INPUT(_class='date',_type='text',
_name=field.name,_id=field.name,_value=value,requires=field.requires,**kwargs)
if field.type=='double':
return INPUT(_class='double',_type='text',
_name=field.name,_id=field.name,_value=value,requi
gards,
Iceberg, 2008-Dec-29, 01:29(AM), Mon
--- Original Message ---
From:Massimo Di Pierro
To: Iceberg
Date:Sun, 28 Dec 2008 10:52:43 -0600
Subject: Re: Bug in nesting cache?
---
> ok
&
he_model=cache.ram)
def annualStat():
teams=getAllRawData()
result=doSomeComplexCalculationBasedOn( teams ) # I hope to cache
the result of this too.
return result
Eliminate the nesting cache usage may be an option, but it will be
more intuitive if I do not have to do so. Can web2py support nesting
cache style?
Than
I know you are a reasonable man. :-) Thanks!
On Dec20, 2:02am, mdipierro wrote:
> Sorry I misunderstood. No objection. I will put it in. Thanks.
>
> Massimo
>
> On Dec 19, 11:59 am, Iceberg wrote:
>
> > Thanks for the quick feedback, but I don't understand. The h
hough the doc said it can). We shall not
keep the bug for backward compatibility, shall we?
On Dec20, 1:26am, mdipierro wrote:
> sorry. it breaks backward compatibility.
>
> Massimo
>
> On Dec 19, 4:53 am, Iceberg wrote:
>
> > Hi Massimo,
>
> > According to doc
On Dec20, 12:05am, fja wrote:
> Hello, is there a way to edit multiple records at once in a form?
>
> Say you have a table
>
> StudentName (string)
> Term1 (string)
> Term2 (string)
>
> I would like to have a form similar to this.
>
> Student Name Grade Term 1 Grade Term2
> Roger
;Come on, Sushi sucks!',
'unknown': 'What is Sushi?' }
))
# In case you want to ask, why a hack inside validators.py is the only
way to do this? I tried to define a subclass of IS_IN_SET in my own
model.py, it almost works, but fails when a record is going to be
sa
the end of the section under
> "Custom Helpers".
>
> On Thu, Dec 18, 2008 at 8:38 PM, Iceberg wrote:
>
> > It seems LEGEND does not qualify for either of the excluding criteria
> > mentioned by Massimo. So I think it should be in.
>
> > Denesl's soluti
; > specification.
>
> > -Marko
>
> > On 17 joulu, 17:42, DenesL wrote:
>
> > > You can create it using the TAG helper.
>
> > > t=TAG.LEGEND('a','b',_c='d')
> > > t.xml() produces
> > > 'ab'
Hi Massimo,
Why there is a definition of FIELDSET in html.py, but there is not a
LEGEND? They usually show up together. Would you please append this in
next version of web2py?
class LEGEND(DIV): tag='legend'
Regards,
Iceberg
--~--~-~--~~~---~--~~
Yo
f you do not rely on this if it is part of
> a logical expression.
>
> For your specific example that would mean something along the lines of
> db.( ~ (db.Orders.special==True))
>
> If I'm cardinally wrong, please correct me.
>
> On Dec 12, 12:59 pm, Iceberg wrote:
>
&
elect all non-True records? Is this
an intended design, or a unexpected flaw?
Thanks in advance.
Iceberg
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group,
Can web2py's XML(...) help you?
On Dec 8, 11:24 pm, achipa <[EMAIL PROTECTED]> wrote:
> I just noticed that by default it escapes some chars that it probably
> shouldn't - for example 'if x < y' becomes 'if x < y'. You can of
> course work around this, but is probably not what most users would
>
On Dec 3, 6:29 am, mdipierro <[EMAIL PROTECTED]> wrote:
> please check it out. Very minor changes. The major change is caching
> of bytecode on GAE.
Is there any latest whatsnew.txt or changes.txt which comes with every
version of new web2py? I could not find any in web2py_win.zip neither
web2py_
's default db record delete function. But I suggest
a more generic scenario: how about a radio button that can be "un-
choose"?
Though I know how to do that manually, I am still glad to see it
becomes "battery included" of web2py, say, a "input.deletable"
clas
radio button with
"_class='delete'", then click it again and again, but nothing special
happened.
Besides, I guess there should not be an excalmatory mark in front of
the "confirm(...)". But I can not test it anyway.
Yours,
Iceberg
--~--~-~--~~~---
Thanks in advance.
Regards,
Iceberg
On Oct1, 9:26pm, voltron <[EMAIL PROTECTED]> wrote:
> You are right Achipa :-) I was thinking of something crossplatform.
> And this would rotate the log files created by web2py? Ill try it out
>
> Thanks!
>
> On Oct 1, 2:55 pm, achipa <
anks in advance.
Regards,
Iceberg
--~--~-~--~~~---~--~~
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 from this group, send email
EMAIL_USER="[EMAIL PROTECTED]"
EMAIL_PASS="blah"
then later:
server = smtplib.SMTP(EMAIL_SERVER)
server.login(EMAIL_USER,EMAIL_PASS) # Add this line
server.sendmail(fromaddr, toaddrs, msg)
Sincerely,
I
all_is_ok:
# instead of return dict(msg="ok", partA=dataA, partB=dataB), now
I do:
return dict(DIV(partA,partB))
else:
# instead of return dict(msg="oops", partA=dummyA, partB=dummyB),
now I do:
return dict(whatever="oops")
On Nov4, 21:57, Iceberg <[EM
Hi Massimo and all pals,
This post is about a tiny trick. Hopefully you will like it and
include it in the next version of web2py.
I used to do this in controller:
def foo():
# do something
return dict(partA=some_words_in_a_table, partB=major_part_as_a_form)
so I need to write a foolish fo
)
>
> or you can use a factory (to pretend you have a database table
>
> from gluon.sqlhtml import form_factory
> form=form_factory(SQLField('name','string',requires=IS_NOT_EMPTY(),label='Y
> our
> Name'),SQLField('birth','date'))
>
&
advance!
Sincerely,
Iceberg, 2008-Oct-29, 01:18(AM), Wed
--~--~-~--~~~---~--~~
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 uns
601 - 671 of 671 matches
Mail list logo