Even I have been be with web2py for more than 18 months, I still feel
somewhat difficult to catch up with the web2py evolution. So you are
not alone, Mr. BG. :-) After all, it is good that web2py grows up
fast. :-)
And yes I also like the idea of providing a fancy scaffolding app and
a minimal o
I think this would be a perfect tool for a web2py toolkit (seperate
from the main web2py).
On Fri, Jul 24, 2009 at 05:38, Alexandre
Andrade wrote:
> Leandro,
>
> I announced some time ago start in a script/aplication in web2py to do that
> with postgresql. But since them I have so many projects,
You can delete all files and start a new one from scratch. Nothing
should breaks.
I do not oppose the idea of a more flxible process for creating the
scaffolding app.
On Jul 24, 12:59 am, BG wrote:
> I have not been looking at Web2Py for 8 months or so.
> Picking it up again I can see lots of i
I have not been looking at Web2Py for 8 months or so.
Picking it up again I can see lots of improvements done.
Even though I'm impressed I have some problem with the default
application.
Out of the box it has:
- Authentication
- Nice Javascript (JQuery I assume) menus
- Some generic files
If
Hi Benigno and all,
I found an announcement
"PayPal to Become First Truly Global Payment Platform Open to Third-
Party Developers"
at https://www.paypal-media.com/releasedetail.cfm?ReleaseID=398758
Will the API be useful to find a better way to incorporate PayPal into
the eStore applicance?
--
Ok. Thanks.
I will probably attempt an experiment this weekend with the Alex
concept of a code wrapped document. With three elemental components --
* A launcher to open a given document type for viewing from ../static
* A summary form read/written to a JSON file stored in ../static
* Leverage th
Leandro,
I announced some time ago start in a script/aplication in web2py to do that
with postgresql. But since them I have so many projects, and could not
advanced.
I posted a roadmap to do that too. (search for my posts at google groups).
What database you use?
Mail me in private email to tal
I think I saw something about this before but I can't find it now.
Using the web-editor to modify the server models/controllers/views/
modules is great for the highlighting, but unfortunately I can't see
the cursor so I just end up turning off the highlighting.
I don't know if this cursor-colour
Theorecially yes. Practically no. The code to do it has not been
written.
On Jul 23, 5:49 pm, Leandro - ProfessionalIT
wrote:
> Hi,
> It's possible import a SQL Schemma Database into a model.py ?
>
> I have a big legacy database(with many tables) and I want generate
> the model class from da
This
{{=target.div}}
should be
{{=target_div}}
could be a typo in the manual.
Massimo
On Jul 23, 5:01 pm, donnek wrote:
> I'm working my way through the manual, and doing the wiki in chapter
> 3. Everything has worked fine (no mean feat for tutorials!), except
> for one thing: the search f
something like this?
form.append(BUTTON('click me',_onclick='document.location="%s"' % URL
(f='index')))
You may want to play with
form[0].append(...)
form[0][0].append(...)
form[0].insert(-1,)
etc.
depending on where you want to insert the button.
On Jul 23, 4:43 pm, "Sebastian E. Ovide
Both! In this thread I see people doing stuff as opposed to propose
ideas. Proposing ideas is important too but often they imply more work
for me which would take away from web2py development.
Massimo
On Jul 23, 11:05 am, JohnMc wrote:
> Benigno,
>
> Thanks for the kind words.
>
> Massimo,
>
>
My guess is that those records where created when no "author" was
logged in.
Massimo
On Jul 23, 9:17 am, Alex Fanjul wrote:
> Well, I'm attaching the tables from MySQL which I exported...
> As you can see, the "autor" doesnt match the author_id, so that was the
> matter.
> The problem is that
To me it does not make sense to ask for dynamic translations of values
in the database.
You can translate dropdowns using IS_IN_SET since its values are
constant:
IN_IN_SET(('key1','key2'),(T('value1'),T('value2')))
Massimo
On Jul 23, 9:00 am, Fran wrote:
> In order to be able to support Inter
Denes, I believe this is imlemented. As you suggested. Am I missing
something?
On Jul 23, 8:12 am, DenesL wrote:
> On Jul 23, 7:43 am, mdipierro wrote:
>
>
>
> > {{for i in range(40):
> > =i
> > pass}}
>
> > or
>
> > {{for i in range(40):}}{{=i}}{{pass}}
>
> > BUT
>
> > {{for i in range(40):
>
Hi,
It's possible import a SQL Schemma Database into a model.py ?
I have a big legacy database(with many tables) and I want generate
the model class from database( If this possbile !).
Any idea ?
--~--~-~--~~~---~--~~
You received this message because you ar
That comes into the picture with the domain-related stuff. With
multiple domains the domain setup IS part of the 'config' (obviously
the built-in server limits you in this regard, that's what I was
trying to point out). Apart from routes.py Massimo generally kept to
the idea of no global configs.
You might find these discussions enlightening:
http://reinout.vanrees.org/weblog/2009/07/02/ep-metaprogramming.html
http://pycon.blip.tv/file/1949345
http://www.artima.com/weblogs/viewpost.jsp?thread=240808
http://www.artima.com/weblogs/viewpost.jsp?thread=240845
On Thu, Jul 23, 2009 at 5:30 PM,
Much apreciated and thank you for getting back to me so quicklly. I
will read up about decorators.
Sent from my iPhone
On 23 Jul 2009, at 21:55, Yarko Tymciurak wrote:
> First, I have to admit I only know about the global.asax file from
> (basically) here: http://en.wikipedia.org/wiki/Globa
I don't think we were talking about using the built in server here just
about setting up global variables per site vs. per application.
On Thu, Jul 23, 2009 at 4:46 PM, AchipA wrote:
>
> Most non-hobbyist sites should not use the built-in server (yes,
> that's an official recommendation), an
I'm working my way through the manual, and doing the wiki in chapter
3. Everything has worked fine (no mean feat for tutorials!), except
for one thing: the search function. The relevant lines in the
controller are:
def search():
"an AJAX wiki search page"
return dict(form=FORM(INPUT(_id
Most non-hobbyist sites should not use the built-in server (yes,
that's an official recommendation), and with, say, apache+mod_rewrite
it doesn't matter anyway, right ? :) Enterprise does not mean one
should squander resources. On a double-quad core server I happen to
use at work, I use ~10 web2py
Hi All,
I need to add a Cancel botton the some auth form (change password and
retrieve password). Clicking on the cancel button the form should redirect
to a given URL.
Do I need to create a new form in my controller ?
Is there any easier way to do it ? (for example altering the form created by
First, I have to admit I only know about the global.asax file from
(basically) here: http://en.wikipedia.org/wiki/Global.asax
In web2py, wne a sequest comes in with no direction (just top URI), web2py
will look for an applicaiton "init", or if not found then an application
"welcome". Once the d
Hi guys! i am new to web2py but so far very very impressed! I have
come form asp.net background and I am trying to find a similar concept
to the global.asax file in web2py. effectively i want the user to be
automatically redirected to the logon screen on session start , is
that possible or have i
That wasn't my point - I'm sure google is.
My point was that this is not the general case, but rather a path for
expanding traffic capacity... My point about a corp server I had w/
multiple network cards, facing in to various things (1 to db server; 2 to
one app server) is that this is how you t
Even if it is just an outward facing reverse-proxy, I highly doubt
Google is hosting 2 different websites with the same server or even
process.
Take Django for example.
http://docs.djangoproject.com/en/dev/ref/settings/#media-url
There is obviously a need for global site-wide settings and a nee
Mondrian was what Guido originally wrote for a commercial revision system;
Code-review (what reitveld project is called) was re-written in Java to
Gerrit (not exactly "aka") - it is was done by Sean Pearce (also does a lot
of git development too) for the Android Google Phone project (gerrit works
yes - it's tied to issue system, you can use on local hosts (there's
adapters for "under" the big-table interface that someone made), and it's
_supposed_ to work w/ Mercurial google code hosting; when they released
mercurial (~2 months ago now) it was all still full of glitches, but if we
move the
Hi All,
There is a tool that I have used at Google developed in Python by Guido van
Rossum. It is called Mondrian aka Rietveld. It is a code review tool that
makes discussion about code much simpler than using emails. Specially for
developers that work in different locations.
here is an example o
I do not see this as anything more than an edge case rather than general
situation (and something to accomplish network load balancing in any case).
Anyway, you are not showing anything about servers; you are only showing
network connections. I have one server with 4 network cables feeding, and
That actually supports my point. For serious websites, they have their
own server, and not all off of one installation.
code.l.google.com [72.14.213.100]
groups.l.google.com [72.14.213.139]
On Jul 23, 11:53 am, Yarko Tymciurak wrote:
> for what you're talking about here, I'm not sure this is tr
Oh boy, this stuff is still in the Black Magic phase... documented
about as well as AJAX five years ago, as in, not much nor well...
I have the orbited server running on my screen, with the demos working
and all, but still no clue how to integrate that with web2py so I can
write code in python in
for what you're talking about here, I'm not sure this is true:
look at launchpad or google as examples:
code.google.com
groups.google.com
launchpad.net
code.launchpad.net
bugs.launchpad.net
answers.launchpad.net
For a web2py install, this could reaonably be individual apps (routed by
whatever w
It is unreasonable because most non-hobbyist sites only have 1
canonical domain. When I run Web2Py it only uses around 20mb of memory
for each instance.
On Jul 23, 2:42 am, AchipA wrote:
> Unreasonable ? Why ? For example, I run several of my hobby projects
> as separate web2py applications and
A while back, I was looking for sites to share w/ people who asked "why
web2py?"
I recently read through this, which others might also find as a useful
resource:
http://trac.sahanapy.org/wiki/FrequentlyAskedQuestions
(Thanks, Fran)
- Yarko
--~--~-~--~~~---~--~~
Benigno,
Thanks for the kind words.
Massimo,
Were you addressing Benigno or myself with an action item? Wasn't
clear to at least me. Thanks.
JohnMc
On Jul 23, 6:46 am, mdipierro wrote:
> This is what web2py needs. How do you suggest I link it form the main
> web site? Peraps thete should a p
Yes, obviously, at any serious deployment you'll end up doing things
at the level of an external web server. With including the web server
in web2py it's a bit of a can of worms, as you theoretically could do
a lot of things which are not core web2py.
--~--~-~--~~~---~-
Benigno,
All very good points. Some possible mitigation --
- It doesn't encourage writing quick articles of maybe, one paragraph
and a couple of lines of code.
Include a built-in editor like NiceEdit? My bigger concern might be
the baggage ratio in such articles. 99% of the file being the
appli
This is perhaps a reason to argue for an application-specific routes...
as for "all my apps need" one reasonable option is file links to serve
the job of change one place/file, affect many...
On Thu, Jul 23, 2009 at 6:53 AM, mdipierro wrote:
>
> For now you can easily do this with virtual
thanks! it works!
On 23 июл, 00:12, mdipierro wrote:
> do not use
>
> {{=row.datefield}}
>
> use
>
> {{=db.table.datetfield.formatter(row.datefield)}}
>
> On Jul 22, 8:22 am, DenisBY wrote:
>
> > I've translated it so translation looks like:
> > %Y-%m-%d=> %d.%m.%Y
> > in view in input field da
Don't know about the content like the name of the nick, you should be
able to tell.
But the fact you get shown a nick indicates everything went well.
Remember, it's now only a proof of concept app, so nothing usefull is
yet done besides getting your openid info
On Thu, Jul 23, 2009 at 12:05, dly
In order to be able to support Internationalisation of formfield
dropdown options, what do we need to do?
In the manual it says:
"If the string to be translated is not a constant but a variable, it
will be added to the translation file at runtime to be translated
later."
I tried to get this work
On Jul 23, 7:43 am, mdipierro wrote:
> {{for i in range(40):
> =i
> pass}}
>
> or
>
> {{for i in range(40):}}{{=i}}{{pass}}
>
> BUT
>
> {{for i in range(40):
> if i==0:
> =0
> else:
> =i
> pass
> pass}}
>
> Note no need to pass before else because would be obvious.
Note that this makes it hard t
I do not know. This may work.
The "id" field does not be to be auto increment (it is not on GAE) but
it needs to be integer (is that the case here?) You say you use a
function to insert records. If this is a just implemented as a trigger
executed on "INSERT" then fine else you will have to wait f
I have not looked into this in some time but one problem I remember is
that OpenID requires the server to make an http request via urllib and
GAE requires using fetch instead of urllib.
If you only need to authenticate with google openID on GAE that dan be
more easily done with
gluon/contrib/log
On Jul 23, 12:59 pm, mdipierro wrote:
> > you can do:
> @auth.requires(lambda: not IS_IPV4()(request.client)[1])
> > works behind a proxy if the proxy uses HTTP_X_FORWARDED_FOR but it can
> > be spoofed
> @auth.requires(lambda: not IS_IPV4()(request.addr)[1])
> > does not work behind a proxy and
ERRATA
On Jul 23, 6:56 am, mdipierro wrote:
> you can do:
@auth.requires(lambda: not IS_IPV4()(request.client)[1])
> works behind a proxy if the proxy uses HTTP_X_FORWARDED_FOR but it can
> be spoofed
@auth.requires(lambda: not IS_IPV4()(request.addr)[1])
> does not work behind a proxy and c
On Jul 23, 12:47 pm, gillengam wrote:
> Book pag.143 - Legacy Databases paragraph
> In my database Oracle I have a table with a field called 'id' (primary
> key),
> but 'id' is type PREF0001, PREF0002, PREF0003, ...
> I use a function to insert new record.
> Is this a problem for WEB2PY? Or m
you can do:
@auth.requires(lambda: IS_IPV4()(request.client)[1])
works behind a proxy if the proxy uses HTTP_X_FORWARDED_FOR but it can
be spoofed
@auth.requires(lambda: IS_IPV4()(request.addr)[1])
does not work behind a proxy and cannot be spoofed.
Massimo
On Jul 23, 5:36 am, Fran wrote:
>
For now you can easily do this with virtual hosts in apache and one
web2py installation.
I am not convinced this belongs in web2py.
Massimo
On Jul 23, 4:42 am, AchipA wrote:
> Unreasonable ? Why ? For example, I run several of my hobby projects
> as separate web2py applications and all are on s
Thank you Alexey. I will incorporate this in a couple of days. Sorry
for the dalay.
On Jul 23, 2:41 am, Alexey Nezhdanov wrote:
> On Wednesday 22 July 2009 12:18:52 mdipierro wrote:> Some of them have been
> fixed but some may still need fixes. Help will
> > be appreciated.
>
> Ok, here it is.
Book pag.143 - Legacy Databases paragraph
In my database Oracle I have a table with a field called 'id' (primary
key),
but 'id' is type PREF0001, PREF0002, PREF0003, ...
I use a function to insert new record.
Is this a problem for WEB2PY? Or must I add auto-increment integer
field?
I hope no.
This is what web2py needs. How do you suggest I link it form the main
web site? Peraps thete should a page where people can post links to
articles.
Massimo
On Jul 23, 2:17 am, Benigno wrote:
> John,
>
> Very interesting article. I haven't had the need of capturing
> data and structuring it
You have a point. I will try to add those next week.
On Jul 22, 7:34 pm, Jonathan Lundell wrote:
> On Jul 22, 2009, at 5:03 PM, Yarko Tymciurak wrote:
>
> > On Wed, Jul 22, 2009 at 6:59 PM, Jonathan Lundell
> > wrote:
> > On Jul 21, 2009, at 9:14 PM, Yarko Tymciurak wrote:
>
> >> There is a s
{{for i in range(40):
=i
pass}}
or
{{for i in range(40):}}{{=i}}{{pass}}
BUT
{{for i in range(40):
if i==0:
=0
else:
=i
pass
pass}}
Note no need to pass before else because would be obvious.
On Jul 22, 6:47 pm, Yarko Tymciurak wrote:
> On Wed, Jul 22, 2009 at 6:07 PM, Alex Fanjul wrote:
>
I also try it on my local App Engine DEV server but no luck.
I changed all 8000 to 8080 as per the App Engine Development Server,
but still
when I click Submit, I get the 'Invalid Request' page.
Any suggestions?
Thanks.
On Jul 21, 7:57 pm, Bottiger wrote:
> I've uploaded to my website the mini
On Jul 23, 10:36 am, AchipA wrote:
> I wished we had a sort of standardized way of having a
> @local_only or @auth.ip_in(...) decorator of sorts
I like it :)
- perhaps reusing the IS_IPV4 validator code
Not sure it would work through proxies though...
> (maybe we already do?).
No - just the t
On Jul 23, 7:12 am, Vidul Petrov wrote:
> > That's why the question was asked: what do you need to do exactly?
> db._execute('CREATE TEMPORARY TABLE tmp (id INT)')
> # or whatever the SQL server's dialect requires
This isn't what you're trying to achieve.
This is a proposed way of achieving it.
2009/7/23 Alex Fanjul :
> NameError: global name 'A' is not defined
> Do I have to import gluon in the module? how?
> My view code is like this:
> {{from helpers import pagenav as pagenav}}
I didn't write the helpers module & I don't use it in the same way
that post does.
(I define a variant the
Thanks so much for this work.
I tried it.
It correctly took me to the Open ID confirmation at
http://openid-provider.appspot.com
and then I clicked Yes.
This is the result I got back:
message
:
something heppened:{'url': 'http://openid-provider.appspot.com/
dlypka', 'pape': , 'sreg': [('nickna
Unreasonable ? Why ? For example, I run several of my hobby projects
as separate web2py applications and all are on separate domains as
they are not really related (except for being done by me :) If I put
them on separate web2py instances, that would mean a tenfold memory
increase requirement for
Yes, but the advantage of an automatic conversion on deploment would
still be transparent compatibility across all platforms, which is not
a bad thing to have :)
Also, I wished we had a sort of standardized way of having a
@local_only or @auth.ip_in(...) decorator of sorts (maybe we already
do?).
Site-wide configs are like global variables - we don't like them!
There has to be some compelling reason to want them. It this case, I'm not
sure there is - for example, even for a file read per-request such as:
0_openID_Constants.py
I would just name them, and link them into the apps that nee
That is standard web2py behaviour.
Accessing admin is secured, this can only be done via localhost or
over a secure connection.
In your case, what did you do to have a ticket generated?
On Thu, Jul 23, 2009 at 10:09, gillengam wrote:
>
> Ok for https, but for FAQ I get this:
>
> Forbidden
> You
This is not a web2py requirement, and I think it should be kept that way.
However, I see value in some kind of site wide config like this that
can be used optionally.
On the other hand, there are only a few cases where a complete URL is
required. In the case of OpenID this is most likely to be on
Ok for https, but for FAQ I get this:
Forbidden
You don't have permission to access /admin/default/ticket/AlterEgo/
What can I do for this?
On 23 Lug, 09:59, Yarko Tymciurak wrote:
> On Thu, Jul 23, 2009 at 2:25 AM, gillengam wrote:
>
> > Excuse me, I have some problems to access web2py site.
nope, here it also works fine
On Thu, Jul 23, 2009 at 09:59, Yarko Tymciurak wrote:
>
>
> On Thu, Jul 23, 2009 at 2:25 AM, gillengam wrote:
>>
>> Excuse me, I have some problems to access web2py site. For example I
>> get "sec_error_expired_issuer_certificate"
>>
>> if I visit "https://
>> mdp.c
On Thu, Jul 23, 2009 at 2:25 AM, gillengam wrote:
>
> Excuse me, I have some problems to access web2py site. For example I
> get "sec_error_expired_issuer_certificate"
>
if I visit "https://
> mdp.cti.depaul.edu/wiki".
You can safely ignore this for the wiki site (add an exception)
> Or if I
How about using Massimo's Killer App idea
http://groups.google.com/group/web2py/browse_thread/thread/995e36b68c0c7e51/11511528c0753952?lnk=gst&q=killer+app#11511528c0753952
to distribute these article.apps. A distributed howto/app repository
sounds fun!
HC
On Jul 21, 6:28 pm, JohnMc wrote:
> Ho
On Wednesday 22 July 2009 12:18:52 mdipierro wrote:
> Some of them have been fixed but some may still need fixes. Help will
> be appreciated.
Ok, here it is.
I went over all files in gluon/ and changed all raises that were providing
uhelpful (IMHO of course) tracebacks.
Patch is against current tr
Just to add a few comments to this, there are a few "buts" with one t,
that I see in this approach:
- It doesn't encourage writing quick articles of maybe, one paragraph
and a couple of lines of code.
- It doesn't make it easy to comment and review by other people.
- It doesn't make a quick editi
Excuse me, I have some problems to access web2py site. For example I
get "sec_error_expired_issuer_certificate" if I visit "https://
mdp.cti.depaul.edu/wiki". Or if I visit "http://www.web2py.com/
AlterEgo" I get "Internal error".
Can you help me. I don't understand. It's only problem for me or yo
John,
Very interesting article. I haven't had the need of capturing
data and structuring it from the web so far, but it is great to learn
how to do it, nicelly structured and enlightening.
cheers,
Benigno.
On 22 jul, 14:25, JohnMc wrote:
> Benigno,
>
> The file is located here --http://76
I think its safe to assume that one single copy of the web2py library
serves a single domain. It works for Django.
Serving multiple domains on a single Web2Py installation is an
unreasonable configuration to support, and it should be split into 2
different Web2Py installations imo.
On Jul 23, 12
Be carefull with this. The same instance may serve on multiple domain names
It's up to the developer to make these choices and decissions.
On Thu, Jul 23, 2009 at 07:20, Bottiger wrote:
>
> Also a setting like this should be global to all applications while
> stuffing it in a model will only
76 matches
Mail list logo