[web2py:21357] Re: Table already exists problem [again]

2009-05-06 Thread Michal Jursa
Abbsolutely not, SHOW TABLES is MYSQL specific command. Postgres implements the same funcionality with SELECT * FROM pg_catalog.pg_tables, Oracle makes the same magic with SELECT TABLE_NAME FROM USER_TABLES etc etc... Michal mdipierro wrote: > hmmm. This may be a good idea. Is SHOW standard S

[web2py:21356] Re: Stream a blob

2009-05-06 Thread mdipierro
On May 6, 10:05 pm, rbp wrote: > hello, > > I just noticed that web2py has an easy way to stream data - that's > fantastic! > Currently I upload and download data without streaming which is really > tough on my web2py server. > > All the examples I've seen are for streaming a file on the file >

[web2py:21355] Re: Can't get web2py to run as Windows service

2009-05-06 Thread mdipierro
can you try change the port number in options.py On May 6, 9:23 pm, weheh wrote: > Yes, I know, this is an issue that has been discussed extensively > here. I've looked at the discussions plus the AlterEgo description of > Limodou's work on getting the Windows service to run, but it isn't > work

[web2py:21354] Re: How to auth between Ruby and web2py apps?

2009-05-06 Thread mdipierro
Let me think about this. On May 6, 8:42 pm, weheh wrote: > Hi Massimo, > All I know so far is that the Ruby app is going to use "basic access > authentication". My app is a black-box slave and will be accessed via > api calls that return JSON data structures. I'm hoping this can be a > minor pos

[web2py:21353] Re: Table already exists problem [again]

2009-05-06 Thread mdipierro
hmmm. This may be a good idea. Is SHOW standard SQL? I am not sure all backends support it. On May 6, 7:05 pm, TheDude wrote: > Massimo, may I propose a solution here? It would require a lot of > work, but if it were done I think it'd destroy the competition of > other ORMs :P Anyways, have the

[web2py:21352] Re: New cool feature in trunk!

2009-05-06 Thread mdipierro
Can you please try the latest one that I just posted? On May 6, 6:23 pm, Kuba Kucharski wrote: > Hi > > from the www shell: > > >>> rows=db().select(db.mytable.ALL) > > Traceback (most recent call last): >   File "", line 1, in >   File "/web2py/web2py-devel/gluon/sql.py", line 1964, in select

[web2py:21351] Re: new restructured Sphinx doc into devel branch

2009-05-06 Thread mdipierro
Thank you Tim. I will do it tomorrow morning. On May 6, 5:57 pm, Tim Michelsen wrote: > Hello, > I have issued a merge proposal. Please merge now to get as less > conflicts as possible. > > I think thos subscribed have just received the message from LP. > > I would like to add some small things:

[web2py:21350] Re: latest trunk reads web2py tweets

2009-05-06 Thread mdipierro
because we'll be moving to mercurial and off launchpad soon On May 6, 5:30 pm, Tim Michelsen wrote: > > The new admin site page does no just deply to the Google App engine. > > It also reads the web2py tweets! > > I wonder why you are not using the feeds provided by > Launchpad:http://feeds.lau

[web2py:21349] Stream a blob

2009-05-06 Thread rbp
hello, I just noticed that web2py has an easy way to stream data - that's fantastic! Currently I upload and download data without streaming which is really tough on my web2py server. All the examples I've seen are for streaming a file on the file system. Is it possible to stream a blob fieldtype

[web2py:21348] Re: JSON and datetime

2009-05-06 Thread weheh
In reply to Iceberg, I am encoding datetime using the strftime method (seconds are dropped on purpose): mydatetimestamp.strftime('%Y,%m,%d,%H,%M') This outputs a CSV formatted string, which should be easy for any receiving party to parse. Overall, this issue is not a showstopper, just a minor p

[web2py:21347] Can't get web2py to run as Windows service

2009-05-06 Thread weheh
Yes, I know, this is an issue that has been discussed extensively here. I've looked at the discussions plus the AlterEgo description of Limodou's work on getting the Windows service to run, but it isn't working for me. Here's the story: - I'm running windows server 2003 standard edition build 379

[web2py:21346] Re: How to auth between Ruby and web2py apps?

2009-05-06 Thread weheh
Hi Massimo, All I know so far is that the Ruby app is going to use "basic access authentication". My app is a black-box slave and will be accessed via api calls that return JSON data structures. I'm hoping this can be a minor poster-child for web2py because it's going to be the heart of the reserv

[web2py:21345] Re: Table already exists problem [again]

2009-05-06 Thread TheDude
Massimo, may I propose a solution here? It would require a lot of work, but if it were done I think it'd destroy the competition of other ORMs :P Anyways, have the ORM/DAL catch any errors presented (not sure if this is possible with GAE). If it *does* catch an error, see which number, have python

[web2py:21344] Re: New cool feature in trunk!

2009-05-06 Thread Kuba Kucharski
Hi from the www shell: >>> rows=db().select(db.mytable.ALL) Traceback (most recent call last): File "", line 1, in File "/web2py/web2py-devel/gluon/sql.py", line 1964, in select r = response(query) File "/web2py/web2py-devel/gluon/sql.py", line 1959, in response self._db._execute(

[web2py:21343] [merge request] new restructured Sphinx doc into devel branch

2009-05-06 Thread Tim Michelsen
Hello, I have issued a merge proposal. Please merge now to get as less conflicts as possible. I think thos subscribed have just received the message from LP. I would like to add some small things: * Contrary to what I wrote earlier today, I just did some more wrok on this today. I did not want

[web2py:21342] Re: latest trunk reads web2py tweets

2009-05-06 Thread Tim Michelsen
> The new admin site page does no just deply to the Google App engine. > It also reads the web2py tweets! I wonder why you are not using the feeds provided by Launchpad: http://feeds.launchpad.net/web2py/announcements.atom http://feeds.launchpad.net/web2py/branches.atom http://feeds.launchpad.net

[web2py:21341] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
I confirmed this: In Chrome (Windows; I have yet to build Chrome on my Ubuntu) -- Go to admin; Go to "interesting" app (w/ db tables) - wiki; open shell in another tab; show db structure; go back to admin shell and logout; go back to shell tab and repeat attempt to show db table --- I got the HTML

[web2py:21340] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
also loading recent tweets seems to work in Chrome, but not Firefox On Wed, May 6, 2009 at 4:47 PM, Yarko Tymciurak wrote: > On Wed, May 6, 2009 at 4:40 PM, Yarko Tymciurak wrote: > >> ok - now it works in chrome! ;-) >> Can we get iPython (e.g. completions) working with it? >> >> Also

[web2py:21339] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 4:40 PM, Yarko Tymciurak wrote: > ok - now it works in chrome! ;-) > Can we get iPython (e.g. completions) working with it? > > Also - would be nice to have it come up in a separate page (so you can > still look at your code, while going to a different tab and running test

[web2py:21338] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
ok - now it works in chrome! ;-) Can we get iPython (e.g. completions) working with it? Also - would be nice to have it come up in a separate page (so you can still look at your code, while going to a different tab and running test lines on shell) I'll say one thing: NOW you can readily test s

[web2py:21337] Re: New cool feature in trunk!

2009-05-06 Thread mdipierro
good catch. fixed. On May 6, 4:33 pm, Yarko Tymciurak wrote: > I see - bzr didn't download admin/static/shell.js??? > I don't see it anywhere in my tree... > > On Wed, May 6, 2009 at 4:30 PM, Yarko Tymciurak wrote: > > ok - now I have black background with orange lettering (???) --- but it > >

[web2py:21336] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
No - I could access it in a new browser (e.g. I was logged into Chrome; I didn't have firefox up, but I could start firefox, and get into it immediately) when I removed all but the .127.0.0.1:8000/admin --- THEN I had to login On Wed, May 6, 2009 at 4:32 PM, mdipierro wrote: > > Odd t

[web2py:21335] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
I see - bzr didn't download admin/static/shell.js??? I don't see it anywhere in my tree... On Wed, May 6, 2009 at 4:30 PM, Yarko Tymciurak wrote: > ok - now I have black background with orange lettering (???) --- but it > still doesn't work on windows in either firefox nor chrome - and when I hi

[web2py:21334] Re: New cool feature in trunk!

2009-05-06 Thread mdipierro
I will rewrite it using jquery. On May 6, 4:30 pm, Yarko Tymciurak wrote: > ok - now I have black background with orange lettering (???) --- but it > still doesn't work on windows in either firefox nor chrome - and when I hit > any key, firebug complaind "shell is not defined" (I presume this bi

[web2py:21333] Re: New cool feature in trunk!

2009-05-06 Thread mdipierro
Odd the script does not work since it was provided by Google as one of the GAE examples. There is no security hole. You can access because you are logged in admin. Massimo On May 6, 4:30 pm, Yarko Tymciurak wrote: > ok - now I have black background with orange lettering (???) --- but it > stil

[web2py:21332] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
ok - now I have black background with orange lettering (???) --- but it still doesn't work on windows in either firefox nor chrome - and when I hit any key, firebug complaind "shell is not defined" (I presume this bit: onkeypress="return shell.onPromptKeyPress(event);" One other thing: when going

[web2py:21331] Re: New cool feature in trunk!

2009-05-06 Thread mdipierro
If this a firefox js error or is it a web2py error? Massimo On May 6, 4:22 pm, Yarko Tymciurak wrote: > cannot interact with on chrome or on firefox 3.0.10 > firefox gives me a script error:   "shell is not defined" > > On Wed, May 6, 2009 at 3:53 PM, mdipierro wrote: > > > Mind that it does n

[web2py:21330] Re: New cool feature in trunk!

2009-05-06 Thread Yarko Tymciurak
cannot interact with on chrome or on firefox 3.0.10 firefox gives me a script error: "shell is not defined" On Wed, May 6, 2009 at 3:53 PM, mdipierro wrote: > > Mind that it does not work yet with SQLite > > Massimo > > On May 6, 3:30 pm, Massimo Di Pierro wrote: > > See anything new in the p

[web2py:21329] Re: New cool feature in trunk!

2009-05-06 Thread mdipierro
now it works for sqlite too. ;-) On May 6, 3:53 pm, mdipierro wrote: > Mind that it does not work yet with SQLite > > Massimo > > On May 6, 3:30 pm, Massimo Di Pierro wrote: > > > See anything new in the picture below? Please try click on it. > > >  shell.png > > 21KViewDownload --~--~-

[web2py:21328] Re: weird errors (probably with crud)

2009-05-06 Thread Yarko Tymciurak
This will be a good one to test in-line sphinx docstring documentaiton (right by the defining line: self.messages.verify_email = ... I will work on updating tools.py docstrings tonight so I can check this out... On Wed, May 6, 2009 at 1:48 PM, mdipierro wrote: > > It is a feature, not a bug

[web2py:21327] Re: New cool feature in trunk!

2009-05-06 Thread mdipierro
Mind that it does not work yet with SQLite Massimo On May 6, 3:30 pm, Massimo Di Pierro wrote: > See anything new in the picture below? Please try click on it. > >  shell.png > 21KViewDownload --~--~-~--~~~---~--~~ You received this message because you are subscr

[web2py:21326] dataTables

2009-05-06 Thread JohnMc
Giving a go using the jQuery dataTables plugin. It almost works. dataTables displays and formats the table just fine. The one glitch is that the sort and pagination jpg's don't display. I have the jpg's in the :static folder. Is the plugin expecting the images to be in a different directory? --~--

[web2py:21325] New cool feature in trunk!

2009-05-06 Thread Massimo Di Pierro
See anything new in the picture below? Please try click on it. --~--~-~--~~~---~--~~ 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

[web2py:21324] Re: javascript drawing on background image

2009-05-06 Thread Fran
On May 6, 12:48 pm, Horst wrote: > I need to draw some markers interactively onto a background image on a > web site. > No sophistication - just a few dots of configurable pixel size, and > lines (via mouse dragging). > The web site must store the location of the drawings, and be able to > displa

[web2py:21323] Re: latest trunk reads web2py tweets

2009-05-06 Thread mdipierro
def twitter(): session.forget() import gluon.tools import gluon.contrib.simplejson as sj page = gluon.tools.fetch('http://twitter.com/web2py?format=json') return sj.loads(page)['#timeline'] --~--~-~--~~~---~--~~ You received this message because

[web2py:21322] Re: weird errors (probably with crud)

2009-05-06 Thread mdipierro
It is a feature, not a bug. You are supposed to customize the message auth.messages.verify_email = 'Click on the link http://hostname/appname/default/user/verify_email/%(key)s to verify your email' else web2py does not know what the public URL is. Massimo On May 6, 1:43 pm, Jurgis wrote: > o

[web2py:21321] Re: weird errors (probably with crud)

2009-05-06 Thread Jurgis
one more thing -- I am using Ubuntu 9.04 which aliases python to python2.6, but now I started python2.5 web2py and the behaviour is the same... On 6 Geg, 21:03, Jurgis wrote: > > Is this trunk or stable? which built date? > > Version 1.61.4 (2009-04-21 10:02:50) --~--~-~--~~

[web2py:21320] latest trunk reads web2py tweets

2009-05-06 Thread mdipierro
The new admin site page does no just deply to the Google App engine. It also reads the web2py tweets! Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send

[web2py:21319] Re: weird errors (probably with crud)

2009-05-06 Thread Jurgis
same if I ask gmail to "show original" (in sender outbox) http://files.akl.lt/users/jurgis/etc/web2py-verify_mail.txt Message-ID: <4a01d963.1c185e0a.16de.4...@mx.google.com> Date: Wed, 06 May 2009 11:39:31 -0700 (PDT) From: laisvosprogra...@gmail.com To: jurgis.pralgaus...@gmail.com Subject:

[web2py:21318] Re: about FORM and db.update

2009-05-06 Thread mdipierro
SQLFORM(...,showid=False) On May 6, 1:08 pm, "Sebastian E. Ovide" wrote: > Thanks Massimo ! > > I've tried to use SQLFORM before but it displays also the ID even if I do > not include it in the fields list. Furthermore I need to change some fields > defaults such as TEXTAREA size etc... (in my a

[web2py:21317] Re: weird errors (probably with crud)

2009-05-06 Thread Yarko Tymciurak
If you get text email (not html) this might be a problem (that is, if you try to copy/paste the test); the hyperlink should be correct though. On Wed, May 6, 2009 at 1:21 PM, Jurgis wrote: > > by the way, > > the registration confirmation email contains very incomplete link :/ > > Click on the

[web2py:21316] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
Tim - Could you put this makefile in your doc directory on your branch (attached)? I still have to work out so it works when run from the same directory as the Makefile on a couple of platforms... but I'll do that later. It shouldn't affect your shell scripts / bat files. Thanks, Yarko 2009/5/

[web2py:21315] Re: weird errors (probably with crud)

2009-05-06 Thread Jurgis
by the way, the registration confirmation email contains very incomplete link :/ Click on the link http://...verify_email/6a2cd595-17a1-4044-b5ef-1153e272f78e to verify your email On 6 Geg, 17:03, Jurgis wrote: > there seems to be crud+auth problem > > becauase if I not enable auth4crud > # cr

[web2py:21313] Re: weird errors (probably with crud)

2009-05-06 Thread Jurgis
> Is this trunk or stable? which built date? Version 1.61.4 (2009-04-21 10:02:50) --~--~-~--~~~---~--~~ 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@googlegrou

[web2py:21314] Re: about FORM and db.update

2009-05-06 Thread Sebastian E. Ovide
Thanks Massimo ! I've tried to use SQLFORM before but it displays also the ID even if I do not include it in the fields list. Furthermore I need to change some fields defaults such as TEXTAREA size etc... (in my app there are more than 1 field) Sebastian E. Ovide

[web2py:21312] Re: about FORM and db.update

2009-05-06 Thread mdipierro
You can do if form.accepts(request.vars,session,keepvalues=True) You can also simplify your code def test(): tests = db(db.tests.owner_id==auth.user.id).select() if tests: form=SQLFORM(db.tests,tests[0],fields=['name']) if form.accepts(request.vars,session):

[web2py:21311] Re: requires_login(next='')

2009-05-06 Thread mdipierro
auth.settings.login_next='.' Massimo On May 6, 12:17 pm, annet wrote: > In t2 you could do: > > @t2.requires_login(next='login') > > In tools.py > > @auth.requires_login(next='../authtool/login') > > doesn't work: > TypeError: requires_login() got an unexpected keyword argument 'next' > > W

[web2py:21310] Re: Strange Behaviour? ondelete="CASCADE"

2009-05-06 Thread annet . vermeer
Hi Pystar, I think the ondelete='CASCADE' should be in the referencing table: db.define_table("Pet", SQLField("pet_name', "string", lentgth=32, default=None, required=True), SQLField("pet_owner", db.Person, requires=IS_IN_DB(db, "Person.id", "Person.name"), ondelete='CASCADE')) In SQL this wou

[web2py:21309] about FORM and db.update

2009-05-06 Thread Sebastian E. Ovide
Hi All, in an action that updates a FORM , when the form accepts the new values, it updates the DB correctly, but when redraw the page it display the old values. If I press Submit again (keeping the old values in the form) it displays the new values entered previously... and so on for ever t

[web2py:21308] requires_login(next='')

2009-05-06 Thread annet
In t2 you could do: @t2.requires_login(next='login') In tools.py @auth.requires_login(next='../authtool/login') doesn't work: TypeError: requires_login() got an unexpected keyword argument 'next' What's the equivalent of t2.requires_login(next='login') in tools.py? In the online documenta

[web2py:21307] requires_login(next='')

2009-05-06 Thread annet
In t2 you could do: @t2.requires_login(next='login') In tools.py @auth.requires_login(next='../authtool/login') doesn't work: TypeError: requires_login() got an unexpected keyword argument 'next' What's the equivalent of t2.requires_login(next='login') in tools.py? Kind regards, Annet -

[web2py:21306] Strange Behaviour? ondelete="CASCADE"

2009-05-06 Thread Pystar
Hi All, In the Web2py book, in the DAL section, one of the arguments of the SQLField constructor is "ondelete" and the explanation is that any SQLField that has the "ondelete="CASCADE" will have all referencing records deleted when it is deleted. But i have noticed that this doesnt work for me. Ca

[web2py:21305] Re: Best way to handle rich website?

2009-05-06 Thread Ted G
If you do a search on jDiv you will find a few recent threads discussing this topic (related to the example link provided by Massimo). I've been heading down this road myself, creating a site where site pages are simply container based layouts containing re- useable "applets". The pattern I've fou

[web2py:21304] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 11:12 AM, Zoom.Quiet wrote: > On Wed, May 6, 2009 at 21:54, Timmie wrote: > > > >> Sayeahoo! > >> but this proj. is same as that web2py_manual? > > No. > > The manual is a book written by a computer scientist to introduce > > web2py and its logics. > > > > The Sphinx is in

[web2py:21303] Re: Memcache & SQL Query as key

2009-05-06 Thread mdipierro
Can you please email me the modified file? Thanks. On May 6, 10:45 am, NicolasB wrote: > Hello, > I am using memcache to hold query directly: > db((db.ad...,cache=(cache.mem,100)) > > Web2py creates a key with the query. However memcache does not seem to > support spaces. > > I modified web2py_s

[web2py:21301] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 10:50 AM, Yarko Tymciurak wrote: > > On Wed, May 6, 2009 at 10:47 AM, Yarko Tymciurak wrote: > >> On Wed, May 6, 2009 at 10:30 AM, Timmie wrote: >> >>> >>> .. > >> The allowed sections are in >>> http://projects.scipy.org/numpy/browser/trunk/doc/sphinxext/docscrape.py

[web2py:21300] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 10:47 AM, Yarko Tymciurak wrote: > On Wed, May 6, 2009 at 10:30 AM, Timmie wrote: > >> >> .. > The allowed sections are in >> http://projects.scipy.org/numpy/browser/trunk/doc/sphinxext/docscrape.py > > > Well - this is interesting, and uses sphinx Numpy extension (co

[web2py:21299] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 10:30 AM, Timmie wrote: > > > WOW - did I have to dig to find the docstring source for that arctan > module; > > it looks like it's just docsting - the extensions (I suspect) have to do > > with this being in a file of just docstrings for generated functions. > No need: >

[web2py:21298] Memcache & SQL Query as key

2009-05-06 Thread NicolasB
Hello, I am using memcache to hold query directly: db((db.ad...,cache=(cache.mem,100)) Web2py creates a key with the query. However memcache does not seem to support spaces. I modified web2py_src_1.61.4\web2py\gluon\contrib\memcache\__init__.py to format the key I don't know if this is the best

[web2py:21297] Re: Sphinx docs post

2009-05-06 Thread Timmie
> WIll tests in docstrings work ok?  Should we have a subheading:  "Tests"? They are included in the Examples section. I never used them but know that numpy/scipy do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "w

[web2py:21296] Re: Sphinx docs post

2009-05-06 Thread Timmie
> I had seen (but haven't really studied) PEP257; Me too. I completly reply on the numpy standard as most of my programs are scientific... > WOW - did I have to dig to find the docstring source for that arctan module; >  it looks like it's just docsting - the extensions (I suspect) have to do >

[web2py:21295] Re: Poor performance on GAE

2009-05-06 Thread Markus Gritsch
Hi, has anyone tried using web2py on Java-GAE using Jython? Does it work? Do the request times get improved? Kind regards, Markus On Apr 15, 3:19 pm, Robin B wrote: > I am also not happy with the CGI performance ofGAE. > > Some interesting numbers: > > welcome/default/index: > > cold reques

[web2py:21294] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
more to add later reading PEP is suggesting more this will become a documentation item for developers then... We'll have to consider how to make documenting an application (without pulling in all the web2py documentation) simple this way too. On Wed, May 6, 2009 at 10:01 AM, Yarko Tymciur

[web2py:21293] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 9:56 AM, Yarko Tymciurak wrote: I think I also want to add this: > >- Parameters >- Returns > > Dependencies > >- >- Notes >- Examples >- See Also >- References > > My thinking is that if you have nothing to put in one of these headings, delete

[web2py:21292] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 9:04 AM, Timmie wrote: > > Hello, > I think we are talking of the same ideas: I think so... great! > > I don't know who you have with push permissions, but I think we should > work > > out the docstring format we want to have, get agreement > There is a clear standard:

[web2py:21291] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 9:10 AM, Timmie wrote: > > > > > >- Because of my experience w/ Python3Patterns book, > > > Can you please tell me more here? > > > What implications does the book give? > I found it here: > http://www.mindviewinc.com/Books/Python3Patterns/Index.php > > Looking forward

[web2py:21290] Re: Sphinx docs post

2009-05-06 Thread Timmie
> > >    - Because of my experience w/ Python3Patterns book, > > Can you please tell me more here? > > What implications does the book give? I found it here: http://www.mindviewinc.com/Books/Python3Patterns/Index.php Looking forward to read it. --~--~-~--~~~---~--~---

[web2py:21289] Re: weird errors (probably with crud)

2009-05-06 Thread mdipierro
Is this trunk or stable? which built date? On May 6, 8:12 am, Jurgis Pralgauskis wrote: > Hello, > > I renamed the application folder and started web2py again > I can do admin ok, but CRUD examples stop to work :/ > not sure if this is due to renaming.. > > http://127.0.0.1:8000/CodeByExample/d

[web2py:21288] Re: javascript drawing on background image

2009-05-06 Thread mdipierro
I agree and processing has already been integrated in web2py: http://www.web2py.com/examples/static/web2py.app.processing.tar Massimo On May 6, 7:59 am, Jurgis wrote: > On 6 Geg, 14:48, Horst wrote: > > > I need to draw some markers interactively onto a background image on a > > web site. > >

[web2py:21287] Re: crud problems log events

2009-05-06 Thread mdipierro
I think I just fixed it in trunk. Please give it a try On May 6, 5:31 am, NewBeen wrote: > Any news about this 8-) > > Thanks in advance > > Rui Gomes > > On 5 Maio, 16:16, mdipierro wrote: > > > It may be a bug. I will look into it and fix it tonight. > > > On May 5, 10:21 am, NewBeen wro

[web2py:21286] Re: Sphinx docs post

2009-05-06 Thread Timmie
Hello, I think we are talking of the same ideas: > > My idea was to > > 1) remove all errors of the new docs (excluding API, wiki FAQ) > > ... I assume you mean from web2py-sphinx branch... Yes. > > 2) then pull the latest devel > > 3) copy the docs over > > 4) commit and push to my repo > > 5)

[web2py:21285] Re: weird errors (probably with crud)

2009-05-06 Thread Jurgis
there seems to be crud+auth problem becauase if I not enable auth4crud # crud.settings.auth=auth # (optional) enforces authorization on crud things work nicely On 6 Geg, 16:12, Jurgis Pralgauskis wrote: > Hello, > > I renamed the application folder and started web2py again

[web2py:21284] Re: Best way to handle rich website?

2009-05-06 Thread JohnMc
Web2py uses the controller:view like any MVC. But don't think of the view as a whole page. Think of it as a view component for your applet. The link to the controller is not that limiting. If all you need is just a view just add a "def mycode(): return". No code. Move your focus to the controller

[web2py:21283] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 8:54 AM, Timmie wrote: > > > Sayeahoo! > > but this proj. is same as that web2py_manual? > No. > The manual is a book written by a computer scientist to introduce > web2py and its logics. > > The Sphinx is intended to provide: > * Developer documentation with access to the

[web2py:21282] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 8:25 AM, Timmie wrote: > > Hi, > > >- Because of my experience w/ Python3Patterns book, > Can you please tell me more here? > What implications does the book give? > I was just saying that using trunk of sphinx was the result; if sphinx had a bug, Georg seemed to fix

[web2py:21281] Re: Sphinx docs post

2009-05-06 Thread Timmie
> Sayeahoo! > but this proj. is same as that web2py_manual? No. The manual is a book written by a computer scientist to introduce web2py and its logics. The Sphinx is intended to provide: * Developer documentation with access to the API * web2py user/administrator guidelines --~--~-~--~--

[web2py:21280] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 8:25 AM, Timmie wrote: > > >- To find what docstring needs work, look at the docs for things like: > > System Message: ERROR/3 (web2py-sphinx/gluon/sql.py:docstring of > gluon.sql, > > line 6) > > Unexpected indentation. > I know. These are also saved in the sphinx log

[web2py:21279] Re: Best way to handle rich website?

2009-05-06 Thread mdipierro
We are all thinking about this. have you see this? http://www.web2py.com/events/default/index Now we need write specs for writing plugins/components. Perhaps we should have an IRC meeting about this On May 6, 5:15 am, Joe Barnhart wrote: > I've been pondering the best way to create sites w

[web2py:21278] Re: Filling form after submitting

2009-05-06 Thread mdipierro
A graph consists of a set of vertices and a set of links. I think you should have a table for vertices and a able for links. Something like this: db.define_table('vertex',SQLField('metadata')) db.define_table('link',SQLField('source',db.vertex),SQLField ('dest',db.vertex),SQLField('metadata')) db

[web2py:21277] Re: Sphinx docs post

2009-05-06 Thread Zoom.Quiet
On Wed, May 6, 2009 at 20:38, Yarko Tymciurak wrote: > Hi Tim - > > This is GREAT progress! > Sayeahoo! but this proj. is same as that web2py_manual? > Some comments: > > Because of my experience w/ Python3Patterns book, I use / prefer to use the > hg trunk of sphinx; this seems to work (and s

[web2py:21276] Re: How to auth between Ruby and web2py apps?

2009-05-06 Thread mdipierro
On May 6, 1:20 am, weheh wrote: > I'm still green when it comes to web2py auth and I'm faced with > integrating a web2py app with a Ruby app, of which I know nothing. > Does anyone out there know enough about both to suggest how to have > Ruby do user auth but then pass a certificate to web2py au

[web2py:21275] Re: Sphinx docs post

2009-05-06 Thread Timmie
Hi, >    - Because of my experience w/ Python3Patterns book, Can you please tell me more here? What implications does the book give? >    - To find what docstring needs work, look at the docs for things like: > System Message: ERROR/3 (web2py-sphinx/gluon/sql.py:docstring of gluon.sql, > line 6)

[web2py:21274] weird errors (probably with crud)

2009-05-06 Thread Jurgis Pralgauskis
Hello, I renamed the application folder and started web2py again I can do admin ok, but CRUD examples stop to work :/ not sure if this is due to renaming.. http://127.0.0.1:8000/CodeByExample/default/data/tables shows empty window :/ I recall it showed me nice tables some time earlier.. http://

[web2py:21273] Re: javascript drawing on background image

2009-05-06 Thread Jurgis
On 6 Geg, 14:48, Horst wrote: > I need to draw some markers interactively onto a background image on a > web site. > No sophistication - just a few dots of configurable pixel size, and > lines (via mouse dragging). just a hint you could use http://processingjs.org/ i saw it used for quite sim

[web2py:21272] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
On Wed, May 6, 2009 at 7:43 AM, Timmie wrote: > > Hello Yarko, > thanks for answering. > > > > The process you describe for contributing either risks overwriting > > web2py-sphinx changes, or assumes that both devel and web2py-sphinx > branches > > are already in sync; > As stated earlier, I do n

[web2py:21271] Re: Sphinx docs post

2009-05-06 Thread Timmie
Hello Yarko, thanks for answering. > The process you describe for contributing either risks overwriting > web2py-sphinx changes, or assumes that both devel and web2py-sphinx branches > are already in sync; As stated earlier, I do not have experience with concerted development and such merges. Th

[web2py:21270] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
Hi Tim - This is GREAT progress! Some comments: - Because of my experience w/ Python3Patterns book, I use / prefer to use the hg trunk of sphinx; this seems to work (and showed a couple of error messages below) - To find what docstring needs work, look at the docs for things like:

[web2py:21269] Re: Open to suggestions

2009-05-06 Thread Gary
You might want to look at: http://www.web2py.com/AlterEgo/default/show/205 It provides an updated alternative to {{=form.record.fieldname}} with some additional functionality for custom forms including the data containing "" for add and field label values. Gary. On May 6, 1:11 am, Ted G wrote

[web2py:21268] javascript drawing on background image

2009-05-06 Thread Horst
I need to draw some markers interactively onto a background image on a web site. No sophistication - just a few dots of configurable pixel size, and lines (via mouse dragging). The web site must store the location of the drawings, and be able to display it again on top of the background image when

[web2py:21267] Re: Sphinx docs post

2009-05-06 Thread Yarko Tymciurak
Hi Tim - The process you describe for contributing either risks overwriting web2py-sphinx changes, or assumes that both devel and web2py-sphinx branches are already in sync; After you once have a branch of web2py-sphinx, and a pull of devel, I think you will need to merge web2py-sphinx with devel

[web2py:21266] Re: crud problems log events

2009-05-06 Thread NewBeen
Any news about this 8-) Thanks in advance Rui Gomes On 5 Maio, 16:16, mdipierro wrote: > It may be a bug. I will look into it and fix it tonight. > > On May 5, 10:21 am, NewBeen wrote: > > > Greetings I'm trying to log the events when a create a table with crud > > but i always get the

[web2py:21265] Best way to handle rich website?

2009-05-06 Thread Joe Barnhart
I've been pondering the best way to create sites with rich pages that contain lots of "applets" or "tasklets". It seems limiting to have the entire page tied to a single Python function. Maintaining the site could be problematic if everything funnels through one "controller" function. Then I wo

[web2py:21264] Re: Filling form after submitting

2009-05-06 Thread opedge
My problem consists in work with graphs. I use a table of text input fields to set the values of the paths in graph. On May 6, 3:41 am, mdipierro wrote: > Why do you have multiple fields with the same names? In general this > should only be done for checkboxes. Is that the case? > > Massimo > >