[web2py] Re: plugin_wiki

2010-07-21 Thread Tim Michelsen
> What does the roadmap look like for
> the future?
Yes, that's exactly my question at the moment.

I mean there were a numbert of attempts:
t1, t2, c9, cube2py and now just plugin_wiki.

How much is the core team dedicated to make this more that just a demo
project?

Web development at my company is shaping again as decisions seem to be made.

So before I invest another bunch of hours in yet the next show-off tool?

I tried to convert my self-programmed site into T9 now it tuens out to
be a senseless effort.

So a clear statement is needed.

Because the video is definately HOT STUFF that deserves to be used.
But for production employment I need a statement that ensures future
upgradability just like web2py development ensures backward compatibility.

Thanks and regards,
Timmie



[web2py] please explain this twitter post

2010-07-21 Thread Tim Michelsen
What do you want to say by

RT @computingnow: [cise] PrePrint: web2py for Scientific Applications:
The needs of scientists to communicate effectively, collaborate..

?



[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-01 Thread Tim Michelsen
> http://www.ahmedsoliman.com/2010/07/29/the-good-and-bad-about-web2py/
nice one. and fair.

Would lo e to see a reaction from Massimo.





[web2py] OT: email notifications on repo change?

2010-08-01 Thread Tim Michelsen
Hello,
when we were using bazaar and Lunchpad, there was a possibility to
subscribe to code repositories and Launchpad would send me a email when
a new revision was submitted.

Is there a similar feature with google code?

I could find the setting in my profile.

I welcome your hints.

Timmie



[web2py] Re: OT: email notifications on repo change?

2010-08-01 Thread Tim Michelsen
> Alternatively, as an ordinary user, you can go to the Project Home ->
> Updates and subscribe to its rss feed:
> 
> feed://code.google.com/feeds/p/web2py/updates/basic
> 
> (It's not shown as a link on the page, but it's in the header, and
> Safari, at least, exposes it; I assume Firefox as well.)
Yes, I know that option.
But for some things I still like email notifications.

Maybe a RSS2mail app would help out?




[web2py] Re: ARTICLE: The good and bad about web2py

2010-08-02 Thread Tim Michelsen
> 5- Yes, Python does work on Eclipse, IntelliJ, etc. but does web2py
> work smoothly and easily? for instance, to get web2py working
> correctly on eclipse (PyDev) you will need to put stupid nonsense
> imports ( if 0: import ) on the top of every file because of the
> "magic" I mentioned before., you will need to manually redefine
> request, response, session, etc. variables in that dummy if condition.
> You don't get proper auto completion because almost everything happen
> in the runtime (like dicts masked as attributed objects). So, simply,
> By design no IDE can help you much unless we hardcoded much of that
> stuff into the IDE itself.
Oh yes, this is actually what made my efforts to document the framework
with Sphinx quite unsuccessful last year:
things only work when executed but Sphinx is designed for importing code.



[web2py] Re: markmin, t2, t3, cube9 etc. (important update)

2010-08-02 Thread Tim Michelsen
> No that I can think of.
Would be good if you could use one of the major markup languages as input:
http://en.wikipedia.org/wiki/List_of_lightweight_markup_languages

Currently, your markmin seems to be like Texy (http://texy.info/en/)

A look at converters show how is the life could be:
* http://txt2tags.sourceforge.net/
* http://johnmacfarlane.net/pandoc/

So I may suggest to adapt markmin to one of the major lanuages and then
use a converter.

Regards.

> 
> On Aug 1, 1:40 pm, Timmie  wrote:
>>> I foundrestructuredtext to be too complex to parse.
>>
>> What marup language do you use as template?
>> Is there any markup format you use as design schedme for markmin?
> 




[web2py] Re: searching slice/snippet

2010-08-02 Thread Tim Michelsen
> Was it this plugin?
> http://web2py.com/plugins/default/sortable
Ah, forgot there are also plgins besides the slices...



[web2py] Re: web2pyslices site

2010-08-02 Thread Tim Michelsen
> Done. Thanks.
Cool, thanks for the quick fix.



[web2py] Re: Chapter 13: components and plugins

2010-08-11 Thread Tim Michelsen
Am 11.08.2010 14:58, schrieb mdipierro:
> It is there:
> 
> http://web2py.com/book/default/chapter/13#Extending-Widgets
Theres a typo:

This can be done my creating a file "models/plugin_wiki_contact"

Should be

This can be done by creating a file "models/plugin_wiki_contact"



[web2py] Re: WikiYou - Showcase

2010-08-12 Thread Tim Michelsen
> I would like to share my 2nd app using web2py, its at www.wikiyou.org.
> It is like wikipedia about us and you can create your own subdomain
> usernames like having your own username.wikiyou.org. 
Hey,
this looks really cool!

Would you tell how you created this subdomain thing?

Is there a dedicated function for this?

Best,
Timmie



[web2py] Suggestions for the Basic Authentications

2010-08-15 Thread Tim Michelsen
Hello,
I recently checked out two sites created by Lasiaf using Basic
authetication and Google authentication; I also just checked out the
default welcome app.

I miss the following features in the authentication system:

option for profile removal

possibility to fully remove the user's profile from the application
currently, we can only change email and password.
But there is no option for the user to remove the profile himself by
using a dedictated button in the profile menu. Adding this would be
great. With increased awareness on privacy this is a must-have for many
"social" sites.

cross-app persistent authentication
---

Imagine you have many applicances (e.g. blog system, wiki, conference
management). These may all be stored as individual apps under
/applications. But I would like to see that a used logged in in the blog
system would also automatically be logged in at the wiki when visiting
the wiki start page.
Is this already implemented?
What are the suggestions to handle this?

Kind regards.



[web2py] suggestions for web2py website

2010-08-15 Thread Tim Michelsen
Hello,
my suggestion for the web2py webpage

Add a news menu to the top menu and the add the following 3 colums to
the page using RSS aggregation:

left  center
  right
web2py twitter last 5 posts web2py users list english  last 5
commits web2py code

web2py planet last 5 posts web2py users list brazillast 5
commits cube2py code

  last 5 posts web2py users list spanish


This page could then be refreshed periodically be AJAX...

I think, this could help people to stay updated with web2py developments
as easy as possible.

What do you think?

Best regards,
Timmie





[web2py] Re: Suggestions for the Basic Authentications

2010-08-15 Thread Tim Michelsen
The register for could also benefit from a password strength checker.



[web2py] Re: Suggestions for the Basic Authentications

2010-08-16 Thread Tim Michelsen

> 1) profile removal
> 
> unless I misunderstood you can do
> 
>auth.settings.actions_disabled.append('profile')
Sorry, there is amisunderstanding:
I would like to provide the user a option to completely remove his entry
(identity) from the application (remove the corresponding entry from the
user table).
This action is like "completly remove my account from the website" ==>
the opposite of "register".


> 2) federated authentication.
> 
> there is one way you can do it.
> a) have multiple apps share the same database for auth and access eah
> othe session with
> 
> session.connect(request,response,app="parentapp")
> 
> there is a better way that we should implement
> b) a new version of the CAS appliances based on Auth
> 
> b - is in the todo list
I am curious.



[web2py] Re: suggestions for web2py website

2010-08-16 Thread Tim Michelsen
> the problem we have to solve is:
> 1) how to get more people to provide input?
My initial suggestion wa snot about design.
It was about aggregating content related to web2py project activities



[web2py] Re: Export content as .xlsx

2010-09-21 Thread Tim Michelsen
> I am using XlsXcessive to export content from my web2py apps to .xlsx
>  http://xlsx.dowski.com/
Thanks.
Where do you see the advantage over xlwt?

And how would you suggest to write to ODT files?

Maybe Spreadsheet export could be added as core functionality like CSV
export.
I think this is most wanted in business environments.



[web2py] how to use web2py planet?

2010-09-23 Thread Tim Michelsen
Hello,
I tried web2py planet (http://code.google.com/p/planet-web2py/) on my
local install.

The feeds added in the appadmin database page were successfully added to
the right handed panel.

But no feeds were fetched from the newly added RSS feeds.

What is the magic behind?

Thanks in advance,
Timmie

-- 
Thanks for your help and kind regards.



[web2py] Re: how to use web2py planet?

2010-09-24 Thread Tim Michelsen
> Mmm, maybe a cron configuration problem. I did have some issues with
> that too (using apache / external cron)
> 
> A workaround is to add a "wget .../refresh" to the o.s. crontab to 
> force updates.
Would you consider this as a bug in cron?



[web2py] Re: Packaging web2py for Debian

2010-10-13 Thread Tim Michelsen
> I feel this will be a maintenance nightmare unless it somehow upgrades
> itself. The release process of debian is very slow compared to ours.
You can have automatic daily builds of a source tree import to your PPA:
https://help.launchpad.net/Packaging/SourceBuilds/Recipes



[web2py] Re: In trunk. admin wizard. Please give it a try (alpha)

2010-10-19 Thread Tim Michelsen
Hey,
this is very nic.

The only think is that the INFO sentences are
a) not very accessible from the readability pointof view
b)not very helpful. example in step 3:

 You can use special attributes like "integer", "boolean", "float",
"file", "date", "time", "datetime" to specify the fields type. You can
also use "multiple", "notnull" and "unique" to add attributes. To create
a reference just add the name of the table you want to reference.

It does simple to help.

I suggest:
* Divide messages into paragraphs
* have a animated GIF or small video for each step.
* include a WSIWYG editor for the HTML editing

and extended  feature could be the selection of installed plugins and
layout pages for inclusion into the respecitve pages.

Apart from that, this is just sooo biiig thing. Web app development
fully in browser!

Go on!



[web2py] Re: In trunk. admin wizard. Please give it a try (alpha)

2010-10-19 Thread Tim Michelsen
Am 19.10.2010 18:20, schrieb mdipierro:
> http://127.0.0.1:8000/admin/wizard
Please do also link to this from
http://127.0.0.1:8000/admin/default/site

at best in the create new app section.



[web2py] Re: In trunk. admin wizard. Please give it a try (alpha)

2010-10-19 Thread Tim Michelsen
> http://127.0.0.1:8000/admin/wizard
I think what could also be useful is to add a new table or field to a
table later on after the app had created.



[web2py] how to install plugin_wiki?

2010-10-19 Thread Tim Michelsen
The book on http://web2py.com/book/default/chapter/13#plugin_wiki
does not tell anything about this.



[web2py] Re: how to install plugin_wiki?

2010-10-20 Thread Tim Michelsen
> Make a new app.
> Open the app in design/admin.
> Install the plug-in by scrolling down to the bottom of the admin page
> to where it says install plug-in.
Could you please add this to the book online?
It's not descibed there.



[web2py] Extending DAL for spatial queries?

2010-10-20 Thread Tim Michelsen
Hello,
would it respresent a lot of effort to extend the DAL functionality to
spatial capabilities?

Examples can be found here:

* http://www.geoalchemy.org/tutorial.html#performing-spatial-queries
*
http://docs.djangoproject.com/en/dev/ref/contrib/gis/tutorial/#spatial-queries

Where could we start?

Best regards.
Timmie



[web2py] wizard: site without authentification

2010-10-26 Thread Tim Michelsen
Hello,
I took the auth_user table out of the wizard.

Still, I am required to register and log in after the app is created.

Regards,
Timmie



[web2py] Re: Extending DAL for spatial queries?

2010-10-26 Thread Tim Michelsen
> This would be a good thing to add to http://web2py.uservoice.com.
Done:
http://web2py.uservoice.com/forums/42577-general/suggestions/1170283-extend-dal-for-spatial-queries



[web2py] clean up uservoice

2010-10-26 Thread Tim Michelsen
Hello,
there are some request which are already implemented in web2py on
http://web2py.uservoice.com/forums/42577-general

Regards.



[web2py:23259] podcast hint: Becoming an Open Source Developer

2009-06-04 Thread Tim Michelsen

Hi,
in recent times a lot of discussion has been about roadmap, cummunity 
and contribution.

Here is a nice podcast from our "competitors":

Becoming an Open Source Developer: Lessons from the Django Project 
(PyCon 2007)
http://advocacy.python.org/podcasts/pycon/PyCon2007-BecomingOSDeveloper.mp3
It almost seems like a joke: a family-owned newspaper in Lawrence, KS
(population 80,000) releases an open-source web framework. It's not a
joke, of course: today Django is an increasingly popular web
development platform. As an open-source community Django has been
incredibly successful; in Tim O'Reilly's OSCON keynote, he called
Django "the new face of open source."  But it's often unclear how we
got here. How did a couple of programmers at a newspaper convince
management to contribute to the open-source ecosystem? How does the
company justify the time its developers spend on open source? And how
have we as individuals and as a business had to adapt to become better
open source developers?  In this session: ten lessons in becoming an
open source developer from the Django project.

I think a good piece to learn from.

Kind regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23261] Re: Spatial???

2009-06-04 Thread Tim Michelsen

> Well, it would be good to know in which direction you are moving... :)
> Spatial databases have spatial columns and spatial functions. So, how
> would we go about making the following postgis examples into a DAL-
> able form without slipping to _execute ? How do we insert a geometry ?
> How do we use validators with geometry columns ? The basic selects
> themselves should not be that problematic (a few of the simplest
> postgresql examples from 
> http://www.spatial.cs.umn.edu/Book/labs/vania/spatialQueries.html
> ):
I also believe that this is where to go.
Instead of creating your own spatial stuff, create plugins that extend 
the DAL for spatial data bases:
* postgis based on postgres
* spatiallite based on sqlite
* upcoming google api

Maybe this sets us apart from competing frameworks and attracks more 
geo-hackers.

Regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23265] Re: Spatial???

2009-06-04 Thread Tim Michelsen

> Maybe this sets us apart from competing frameworks and attracks more 
> geo-hackers.
also a good point is that web2py can create the webmapping formats out 
of the box:
* json => geojson
* xml => kml


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23275] Re: Spatial???

2009-06-04 Thread Tim Michelsen

> My interest now is to define "Spatial Database Consistency of Web2py"
> not @ 'Controller' level, but @ "Database" level. I've not yet known
> what web2py is. Give me some time 2 know it.
Check:
http://www.scribd.com/doc/16085263/web2py-slides-version-163
and especially page 71.


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23528] Re: Informal Poll re use of admin interface

2009-06-07 Thread Tim Michelsen

> I use Eclipse/Pydev but find the admin interface handy for quick, one-
> off changes.
+1


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23530] live demos [Re: [web2py:23505] Re: Informal Poll re use of admin interface]

2009-06-07 Thread Tim Michelsen

I think that web2py could need more of this.

why don't you set up a demo installation where prospecive users could 
create a test installation?
GAE seems to be perfect for this.

then, you can show the guys in doubt (@reddit) how to evaluate your program.



--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23918] editing static files from user pages?

2009-06-11 Thread Tim Michelsen

Hello,
is there any app or controller out there that lets me edit text files 
saved in the static direcory?

I am looking for a functionality just like we have in admin.

I want to achieve:
1) user logs in
2) sees a list of files in a pre-defined directory from static
3) user selects the file and edits it
4) changes get written to the file
5) user logs out

I know I could simply replicate parts of the appadmin to the frontend.
But maybe someone has already done such a thing...

Kind regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23930] error on GAE deployment

2009-06-11 Thread Tim Michelsen

Hello,
wanted to try GAE deployment as shown in
http://www.screencast.com/users/mdipierro/folders/Jing/media/b3de44de-814b-48fa-ba91-edd283597d8b

I found a number of glitches:
1) not really documented how to do this quickly!
2) I found out that I need to have appcfg.py. Unfortunately, it's 
absolute path is hardcoded into
applications/admin/models/0.py
Why do you not use web2py root directory as default?

Actually, you start to hit the walls of the zero-config paradigm...
I'd like to support the idea of a comon static direcory which could also 
be the default place for tthe appcfg.py
Any other place could easily changed by symlinks...

3) I put it into
/var/devel/web2py/web2py_gae/appcfg.py

4) when hitting deploy in admin I got this:

Traceback (most recent call last):
   File "/var/devel/web2py/web2py_gae/gluon/restricted.py", line 107, in 
restricted
 exec ccode in environment
   File 
"/var/devel/web2py/web2py_gae/applications/admin/controllers/gae.py", 
line 78, in 
   File "/var/devel/web2py/web2py_gae/gluon/globals.py", line 100, in 

 self._caller = lambda f: f()
   File 
"/var/devel/web2py/web2py_gae/applications/admin/controllers/gae.py", 
line 25, in deploy
 apps = sorted([(file.upper(), file) for file in os.listdir(apath())
   File "/var/devel/web2py/web2py_gae/gluon/admin.py", line 11, in apath
 opath = up(r.folder)
AttributeError: 'NoneType' object has no attribute 'folder'

Please assist me.

Thanks and kind regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23934] Re: error on GAE deployment

2009-06-11 Thread Tim Michelsen

> admin is an app. apps can have configuration.
OK.

> It is possible there is
> a bug, that is an experimentail feature. I will check it.
Thanks for the fast response.
Please drop a mail when finished

I am thinking of creating a online editor for the docstrings...


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:23965] Re: error on GAE deployment

2009-06-11 Thread Tim Michelsen

> fixed in trunk. please give it a try.
Massimo,
I am very sad to say, but I will never ever fix a coding bug in web2py 
core by myself.
The same applies as your refusal to use bugtrackers:
By the time I have figured who the thing works you have already fixed 
the issue... ;-)

Well, couldn't test it fully as there was a problem that GAE 
registration could not send me the text message.

Thanks & Regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:24306] Re: Views without controllers

2009-06-16 Thread Tim Michelsen

> I want to be able to use {{extend}} {{include}} capabilities of the
> view, so it is well integrated with the website and I want to be able
> to keep it international with T(). I shouldn't need a controller for
> that...
This would be very convenient.
For example, sometimes one only wants to test out the same page with 
different results.

I tried this in a controller

In [4]: controller_page1 = "test"

In [5]: controller_page2 = controller_page1

In [6]: contr
controller_page1  controller_page2

In [6]: controller_page2
Out[6]: 'test'

but the page call for controller_page2 would lead to an invalid request.

Kind regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25144] Re: Announcing my first web2py app

2009-06-28 Thread Tim Michelsen

> Just a comment: I don't see any link to web2py ...and you should (cf
> licence)

Please explain this.

I cannot see such a request:

http://www.web2py.com/examples/default/license
This means you can redistribute web2py in binary or other closed source 
form together with the applications you develop as long as you 
acknowledge the author. If you make any modifcation to web2py you must 
distribute it together with the modified source code according to GPLv2.0.

You can distribute web2py app under any license you like as long they do 
not contain web2py code.


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25146] Re: Idea... Thumbnailing...

2009-06-28 Thread Tim Michelsen

> There is the Python Imaging Library (PIL) that lets you open and
> manipulate images from Python applications.  Maybe it would be useful
> in this context?
many PHP projects use gd for such purposes.
It is normally supported on apache webservers.

Here is a python interface:
http://newcenturycomputers.net/projects/gdmodule.html


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25147] Re: Announcing my first web2py app

2009-06-28 Thread Tim Michelsen


>> Just a comment: I don't see any link to web2py ...and you should (cf
>> licence)
> 
> Please explain this.

Sorry ,I missanderstood the string:
"We allow the redistribution of unmodified binary versions of web2py
provided that they contain a link to the official web2py site."
My English is very poor...
Jean-Marc


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25273] Re: question on text area and output

2009-06-29 Thread Tim Michelsen

>{{=TAG[''](*[P(p) for p in body.split('\n')]) }}
> 
> or, if you want to allow HTML tags in texts
> 
>{{=XML(body.replace('\n',''),sanitize=True)}}
> 
> of you want to allow WIKI syntax
What about rest from the wiki?
When will this be added to the devel branch?
Please do give this tip a more prominent place in the documentation...


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25644] other frameworks

2009-07-04 Thread Tim Michelsen

Hello Massimo,
where do you see the main difference design of your framework to Glashammer
http://glashammer.org/documentation.html?

Best regards,
Timmie



--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25645] other frameworks

2009-07-04 Thread Tim Michelsen

Hello Massimo,
where do you see the main difference design of your framework to Glashammer
http://glashammer.org/documentation.html?

Best regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25833] Re: How do we petition Google to mention web2py?

2009-07-06 Thread Tim Michelsen

mdipierro :
  Some people are interested in features as a way to get the job
> done better and quicker. I am working for this second class of users.
> I am interested in building a community for these people.
I like that statement. Keen to see what follows up.
I mean, you add neice little features every week and asure to maintain
backward compatibility.
But I really miss a roadmap with release dates.

mdipierro :
> One is that the python community still perceives web2py as a one man
> project. You people need to brag more about it and about your
> contribution.
True. And I guess this applies even for memebers of this list.

Such posts as
http://groups.google.com/group/web2py/msg/61d0e1356ac1252a
are interesting.
But will not change a lot until something changes in the project set up.

I agre with Hans here:
> We need more visibility on this, eg like Django on
> http://code.djangoproject.com/#Gettinginvolved, but also the
> ticket/feature requests discussed earlier. This will create better
> visibility that more people are(already)  contributing.

For my topic of contribution I would suggest you to install pydocweb on
your server:
http://groups.google.com/group/sphinx-dev/browse_thread/thread/b77ff5ed73faf410
http://code.google.com/p/pydocweb/
http://gminick.wordpress.com/

Although written in Django, it offers the great opportunity to get nice
shiny and valid docstrings with doctest more sooner than later.

a good notice: I was asked by my potential users to continue my app
development today.

Best regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:25987] Re: Tip of the Day: Documentation

2009-07-08 Thread Tim Michelsen

mdipierro schrieb:
> The Sphinx docs are here:
> 
> http://www.web2py.com/examples/static/sphinx/index.html
> 
> they still need some work. All Docstrings are Sphinx compliant. 
Errors:

http://www.web2py.com/examples/static/sphinx/index.html#general-documents
=> just save the document
http://bazaar.launchpad.net/~timmie/web2py/web2py-appdocu/annotate/head%3A/doc/source/docs_overview.rst
to
doc/source/

many other docstrings need proper formating of source code
like
http://www.web2py.com/examples/static/sphinx/gluon/gluon.html#gluon.validators.IS_DATETIME

 >The problem is the pages layout and organization
what do you intend?

Anyone whating to contribute may start here:
http://www.web2py.com/examples/static/sphinx/docs_contrib.html

> and references.
what references do you mean?


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26000] Re: Waht is cron for?

2009-07-08 Thread Tim Michelsen

> a) it will work transparently on all platforms (mac&win incl)
> b) you don't need root access or user settable crontabs
> c) can call web2py controller functions directly
> d) allows you to call init/preload/precache functions on web2py
> startup
> e) allows asynchronous execution of code after a page has been served
I that's the case I really wonder why no one implemented
http://www.planetplanet.org/
in web2py

The native version such a complicated beast from the webhosting point of 
view.


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26240] Re: how can i write a PIL image object to response

2009-07-11 Thread Tim Michelsen

mdipierro:
> You can do it like in django:
>
> from PIL import Image
> def image():
>  image = Image.new("RGB", (800, 600))
>  response.headers['Content-Type']="image/png"
>  image.save(response.body, "PNG")
>  return response.body.getvalue()
>
> response.body is a StringIO

Here is a matplotlib based version:

# CONTROLLER:

def image_mat():
 import sys
 import matplotlib
 matplotlib.use('Agg')
 from pylab import plot, savefig
 plot([1,2,3])
 response.headers['Content-Type']="image/png"
 savefig(response.body)

 return response.body.getvalue()

# view

   

=> this can be extended for interactive plotting using
* form as input
* numpy /scipy as support for the math

@Massimo
You may add this to the examples.




--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26327] ho to exchange data between controllers

2009-07-11 Thread Tim Michelsen

Hello web2py folks,
what is the preferred way to exchange parameters or variables between 
views and controllers?

I have a page where a form gathers input and then a plot is generated 
according to these inputs.

I am currently using the following setup:

## in VIEW
Input form
  {{=form}}
Submitted variables
{{=(request.vars.number, request.vars.hold)}}


   
   


# in CONTROLLER
def plot():


 form=FORM(TABLE(TR("Your number:",INPUT(_type="text", 
_name="number",requires=IS_FLOAT_IN_RANGE(0, 10))),
 TR("Overlay new 
curves:",INPUT(_type="checkbox",_name="hold", value=False)),
 TR("",INPUT(_type="submit",_value="SUBMIT"
 if form.accepts(request.vars,session):
 response.flash="form accepted"
 elif form.errors:
 response.flash="form is invalid"
 else:
 response.flash="please fill the form"
 return dict(form=form,vars=form.vars)


def image_mat_form():
 number = float(request.args[0])
 hold = request.args[1]
 if hold == 'on':
 hold_check = True
 else:
 hold_check = False


 import sys
 import matplotlib as mpl
 mpl.use('Agg')

 #from pylab import plot, savefig, legend, hold
 import matplotlib.pyplot as plt
 import numpy as np
 import scipy as sp
 import scipy.stats as st

 plt.hold(hold_check)
 t = np.arange(0.0 , 5.0, 0.05)
 s1 = np.sin(number * np.pi * t )
 s2 = s1 * np.exp(-t)

 plt.plot(t, s1, 'g--o', t, s2, 'r:s' )
 plt.legend(('sine wave ', 'damped exponential'))


 # plot([1, 2 , number])
 response.headers['Content-Type']="image/png"
 plt.savefig(response.body)

 return response.body.getvalue()

is there a better option for exchanging the form data than
args=[request.vars.number, request.vars.hold] -> number = 
float(request.args[0]), hold = request.args[1]?
I will extend this and the "request.vars" will be many more.

Please tell if you do not understand my question.

Also I'd like to know how to add a file upload field to a FORM.

Thanks in advance,
Timmie

Reference:
Subject: [web2py:26240] Re: how can i write a PIL image object to response
http://permalink.gmane.org/gmane.comp.python.web2py/13567


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26357] Re: ho to exchange data between controllers

2009-07-12 Thread Tim Michelsen

mdipierro schrieb:
> I would probably use session too unless you need to allow visitors to
> keep two (or more) browser windows open within the same session and
> complete the same operation simultaneously with two different inputs.
Thanks.
Although would find out in the long run using some snippets from the book:
May you please add an extended session example to the examples appliance?


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26358] code & book v2

2009-07-12 Thread Tim Michelsen

Hello Massimo,
as you are announcing a update of the book:
Would you please make the code snippets from the book available as zip?
Copy&past from the PDF is not always easy.

Thanks in advance,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26361] Re: ho to exchange data between controllers

2009-07-12 Thread Tim Michelsen

BTW, when doing this scipy/matplotlib stuff I noticed that web2py does 
issue tickets when something is wrong with third party libraries.

E.g. if I write

2* pi
instead of numpy.pi
the image is not drawn (wrong namespace addressing) but also not ticket 
is issued.


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26439] Re: ho to exchange data between controllers

2009-07-13 Thread Tim Michelsen

mdipierro schrieb:
> can you explain more?
referencing the example given when starting the thread:

the following is wrong:

def image_mat_form():
 number = float(request.args[0])

[...]

 import matplotlib.pyplot as plt
 import numpy as np
 import scipy as sp
 import scipy.stats as st

 plt.hold(hold_check)
 t = np.arange(0.0 , 5.0, 0.05)
 s1 = sin(number * np.pi * t )
 s2 = s1 * exp(-t)

 [...]

It should be np.sin & np.ext. But if I forget to reference the module 
with "np." web2py does not issue an error ticket. It
just doesn't render any image.



--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26803] Re: web2py-users and web2py-developers

2009-07-18 Thread Tim Michelsen

> Or email me to be added.
> - You can be a developer if you have contributed to web2py, NOT if you
> plant to contribute to web2py. In order to be a developer you must
> also be a member of the web2py-users list and help other users.
> - I ultimately decide who is in and who is out.
I may suggest to grant these selected developers editing rights to the 
web2py website.

Then, they could update roadmap & how-to-contribute pages.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26804] Re: Bug reports

2009-07-18 Thread Tim Michelsen

 > I will be traveling a lot starting Sunday. I should have occasional
 > network access but not really reliable.

I suggest to add a new page to the web2py page:
Development with subpages
* roadmap: put content of messages
- http://permalink.gmane.org/gmane.comp.python.web2py/14110
- http://permalink.gmane.org/gmane.comp.python.web2py/13864
* how to contribute: put the procedure depicted below:
> I need to setup a better mechanism for bug reports. I propose:
> 1) If somebody posts a problem one of the "developers" should 
check it
> out. If the problem exist take one of the following two 
actions:
>   - submit a patch to me
>   - submit a bug report on the google code site
> 2) If you are a developer, see that a problem has been 
reported,
> nobody checked it in 24hrs, and you have no time either, 
please email
> me about it.

Then you make an experiment:
Go on your journey and enjoy. See what happens. how the community can hadle.
As the guy at the Pycon presentation said:
He foudn out that some people can only contribute here and there. Small 
pieces.
He got success integrating them by setting up a supporting 
infrastructure and right channels of communication & handling.

Have a good trip!
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26925] Re: HOW2Py

2009-07-19 Thread Tim Michelsen

> I would agree with 'use YOUR tools' philosophy. The fact the entire
> web2py community is spread across Win/Mac/Linux assures that in a
> physical sense.  I have read the Sphinx docs, tussled with some simple
> markup and gotten resultant output. Its like futzing with another
> dialect of Wiki markup in my mind. The output side of Sphinx is
> elegant. But the creation side is its weak link right now. But that is
> not only Sphinx's problem, but the case with most markup formats. A
> Sphinx DTD for OpenOffice would go a long way to solving that
> problem.
GSoC will soon have the foundation for interactive Sphinx stuff:
http://gminick.wordpress.com/2009/07/11/mid-term-summary/

Good that they work with mercurial which is inteded for web2py, too.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26924] Re: HOW2Py

2009-07-19 Thread Tim Michelsen


> Massimo "had trouble" w/ sphinx (not sure what he tried) - it's reST 
> with extensions (and reST is a tad less "regular" than some other 
> markups, so attempts at treating it the same way for wikis failed to hit 
> the sweet spot, but there are examples - in Pycon-tech, and moin-moin 
> for example)..
> 
> The "only 2 people" Massimo pointed out isnt' - they are the only 2 he 
> saw give him stuff, and he made assumptions based on that.
> 
> An open-source book, Python 3 Patterns and Idioms 
> (http://www.mindviewinc.com/Books/Python3Patterns/Index.php) also uses 
> Sphinx (and also has been frustrated w/ lack of submissions, but this is 
> I believe more to do with the lack of an interactive, live version for 
> sphinx than anything).
> 
> "Anything goes" sounds good initially - but results are the proof;  it 
> can generate relief (no one likes change, so learning something new, or 
> rather not needing to is generally received with "appreciation")...
> 
> As Massimo will attest, as long as it's a one man show - one 
> contributor, one decision, then "what I want" works pretty well.
> 
> Massimo writes in LaTex - shall we write a latex source, and post a PDF?
> 
> As long as opionions abound, there will be "I think I'll try"   time 
> and actual results are the only real measure.
> 
> I'm in the Sphinx camp (with a little off on LaTex, and definitely a 
> Scribus fan, as I build and bug report on the release candidates ... but 
> would not necessarily use either of those for this;  LaTex / beemer is 
> what I'm trying for the time being for presentations; Scribus for 
> brochures and manuals).
For what it's worth:
I success created a converter for Lyx:
http://www.lyx.org/trac/ticket/6042
Unfortunately, the patch isn't finished due to time constraints. But 
it's fairly easy to export Lyx (WYSIWYM) -> RST.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26926] Re: HOW2Py

2009-07-19 Thread Tim Michelsen

> A directed question if I may. What tools do you use to create the rest
> doc that goes into Sphinx.
I tried to show some here:
http://bazaar.launchpad.net/~timmie/web2py/web2py-appdocu/annotate/head%3A/doc/source/docs_contrib.rst

you can use a simple editor that involves good syntax highlighting. Like 
HTML...

Or see the post on Lyx.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26968] GAE upload from appadmin (site)

2009-07-20 Thread Tim Michelsen

After submitting my email and password in the GAE deploy field of the 
appadmin:

Traceback (most recent call last):
   File "/devel/web2py/web2py_gae/gluon/restricted.py", line 107, in 
restricted
 exec ccode in environment
   File 
"/devel/web2py/web2py_gae/applications/admin/controllers/gae.py", line 
78, in 
   File "/devel/web2py/web2py_gae/gluon/globals.py", line 100, in 
 self._caller = lambda f: f()
   File 
"/devel/web2py/web2py_gae/applications/admin/controllers/gae.py", line 
44, in deploy
 if not item[1] in request.vars.applications]
TypeError: argument of type 'NoneType' is not iterable


What is wrong here?

Thanks,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26970] Re: HOW2Py

2009-07-20 Thread Tim Michelsen

JohnMc schrieb:
> "The shell scripts for making web2py specific sphinx docs I don't
> think apply
> to your question of what tools do I use to create rest (that is, the
> structured format of the content).
> 
> But bottom line is still - you can easily just use a normal text
> editor "
> - Yarko
> 
> Why of course I can create reST docs in VI if I wanted to, so long as
> I memorized the markup. But I think the last 6-7 comments on the
> thread prove my point -- reST utilization won't progress until such
> time as I can edit a document in an editor and not worry that it IS
> reST format.
A first attempt:
http://blog.enthought.com/?p=127

John, use the following approach:
Edit in LyX until finshed -> export to latex -> convert to rst using pandoc


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:26994] Re: GAE upload from appadmin (site)

2009-07-20 Thread Tim Michelsen

Did anyone succeed uploading an application to GAE using the deploy button?
I tried to upload a scaffolding app using my email and password but 
nothing happened.

Please share your experiences.
Thanks.


> After submitting my email and password in the GAE deploy field of the 
> appadmin:



> Traceback (most recent call last):
>File "/devel/web2py/web2py_gae/gluon/restricted.py", line 107, in 
> restricted
>  exec ccode in environment
>File 
> "/devel/web2py/web2py_gae/applications/admin/controllers/gae.py", line 
> 78, in 
>File "/devel/web2py/web2py_gae/gluon/globals.py", line 100, in 
>  self._caller = lambda f: f()
>File 
> "/devel/web2py/web2py_gae/applications/admin/controllers/gae.py", line 
> 44, in deploy
>  if not item[1] in request.vars.applications]
> TypeError: argument of type 'NoneType' is not iterable
sorry, I asked this already earlier.
It's fixed.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:27090] Re: GAE upload from appadmin (site)

2009-07-21 Thread Tim Michelsen

Hi,

> Did you create a Google App Engine account, accept the agreement, etc?
> 
> http://appengine.google.com/

Yes, when I sign in, I can see my applications.
It shows 2 and says: None Deployed.

Any idea?

Thanks for your help.

Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:27091] Re: OpenID for Web2Py

2009-07-21 Thread Tim Michelsen

mdipierro schrieb:
> My OpenID implementation was just an attempt to port python-openid to
> web2py. I never tested it so I am not surprised it does not work.
> 
check out here:
http://gminick.wordpress.com/2009/06/18/next-step-openid-logging/
http://gminick.wordpress.com/2009/06/21/the-file-structure-of-my-project/

He tested it and seemed to have succeeded.

Best,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:27319] Re: GAE upload from appadmin (site)

2009-07-24 Thread Tim Michelsen

Hello Yarko,
have you been successful uploading your app to GAE / appspot?

Thanks,
Timmie

Tim Michelsen:
> Hi,
> 
>> Did you create a Google App Engine account, accept the agreement, etc?
>>
>> http://appengine.google.com/
> 
> Yes, when I sign in, I can see my applications.
> It shows 2 and says: None Deployed.
> 
> Any idea?
> 
> Thanks for your help.
> 
> Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:27397] Re: GAE upload from appadmin (site)

2009-07-25 Thread Tim Michelsen

mdipierro schrieb:
> I assume you have configured admin/models/0.py and (before hit deply)
> You have checked some app to deply.
> 
> The interface you are using is experimental. If you still have
> problems use the google Launcher of shell scripts.
sorry, I don't understand.

do you mean that this feature is not to be used at the moment?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:27419] Re: GAE upload from appadmin (site)

2009-07-26 Thread Tim Michelsen

Yarko Tymciurak schrieb:
> If you look at applications/admin/models/0.py, you will see the last line:
> 
> # To upload on google app engine this has to point to the proper 
> # appengine config file
> GAE_APPCFG = '/Applications/GoogleAppEngineLauncher.app/.
> 
> http://code.google.com/appengine/docs/python/gettingstarted/uploading.html
> 
> shows the format of the config command;  this looks like (I'm guessing) 
> it needs to point to the web2py-relative location of that appcfg.py
Yes, I changed it into a path that points to web2py root.
I put appcfg.py there.
The process starts.

BTW, one can only hit the GAE deployment button if appcfg.py is found. 
If not, it will not appear in appadmin.

@Massimo:
I am ready to test it.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:28777] upgrading applications after the repository cleanup

2009-08-16 Thread Tim Michelsen

Hello,
I know that some time a ago, the development repository was cleaned up.
How would I now upgrade admin and examples?
I currently get this error:

python web2py.py --upgrade yes
/var/lib/python-support/python2.6/MySQLdb/__init__.py:34: 
DeprecationWarning: the sets module is deprecated
   from sets import ImmutableSet
unpacking apps; this may take a few seconds...
Traceback (most recent call last):
   File "web2py.py", line 20, in 
 gluon.widget.start(cron=True)
   File "/var/devel_linux/web2py/devel/gluon/widget.py", line 726, in start
 (options, args) = console()
   File "/var/devel_linux/web2py/devel/gluon/widget.py", line 699, in 
console
 w2p_unpack('admin.w2p', 'applications/admin/')
   File "/var/devel_linux/web2py/devel/gluon/fileutils.py", line 172, in 
w2p_unpack
 fgzipped = gzopen(filename, 'rb')
   File "/usr/lib/python2.6/gzip.py", line 33, in open
 return GzipFile(filename, mode, compresslevel)
   File "/usr/lib/python2.6/gzip.py", line 79, in __init__
 fileobj = self.myfileobj = __builtin__.open(filename, mode or 'rb')
IOError: [Errno 2] No such file or directory: 'admin.w2p'


Thanks in advance,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29359] Re: Googlemap in web2py

2009-08-25 Thread Tim Michelsen

mdipierro schrieb:
> We have this:
> 
> http://bazaar.launchpad.net/~mdipierro/web2conf/devel/annotate/head%3A/views/default/maps.html
> 
> and we have
> 
> from gluon.tools import geocode
> (lo,la)=geocode('243 S Wabash Ave, Chicago, IL")

I succeded in using OpenLayers.
Quite easy with web2py.

But the relevant java code in a file called mymap.html

then modify the view:

{{extend 'layout.html'}}
{{extend 'mymap.html'}}

{{try:}}{{=H2(message)}}{{except:}}{{=BEAUTIFY(response._vars)}}{{pass}}

{{=T("click here for the administrative interface")}}
{{=T("click here for online examples")}}
{{=T("click here for the Show 
Doc Test")}}

=> the map is now reusable.

=> you still need to write the java code yourself.
But you can just start with the simple examples at:
http://openlayers.org/dev/examples/

I don't know what interaction with web2py or database you need.
Also search the list archives for "geo".


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29853] Re: creating and importing from CSV

2009-09-01 Thread Tim Michelsen


> My questions:
> * Do I need to fill something in the first column: wmostations.id?
> * Why does web2py not parse the file?
> * Is it possible to wrap text with " some text, with comma"?


I found the thread: http://thread.gmane.org/gmane.comp.python.web2py/16808

Here is what helped in this particular case:
1) going to the database admin for the table
2) enter the first line of the data and hit enter
3) the validators for field types give feedback on the validity and help 
to reformat the input file.

CSV import seems to have the following conventions:
1) delimiter must be a comma: ,
2) a text separator like "" is accepted.

=> I recommend to use Openoffice which has more export options for the 
CSV export.

I would still like to ask for the following feature:

* Could the import tool be expanded to add support for more dialiects
  (e.g. other delimiters)?
* Better documentation of the CSV import in the manual or else where.

I see that others do also have these problems.

Best regards,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29855] Feature proposal: easier table creation

2009-09-02 Thread Tim Michelsen

Hello,
I would like to ask for a tool that helps to create tables.

This could be implemented as follows:

1) In the admin there could be a spreadsheet app that feeds  a table 
definition tool.
* In such a spreadsheet the user would enter in the rows:
field name, field type, field description, further parameters.
* this could be converted in a draft table definition written to a file 
in models and imported in db.py

2) use DBF tables which contain the the table field definitions and can 
be easily created from spreadsheet applications.
Python libraries can read these and web2py tools could automatically 
create table definitions from this
* http://www.sqlite.org/cvstrac/wiki?p=ConverterTools
* http://pypi.python.org/pypi?%3Aaction=search&term=dbf+sqlite&submit=search

What do you think?

Best regards,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29895] Re: Google Apps wep2py applications

2009-09-02 Thread Tim Michelsen

> http://web2py.appspot.com/survey  is one app;  not sure that Massimo has 
> released this code or not;
> 
> http://web2py.appspot.com/shows a default app of a light effort of a 
> reddit-like app - reddish;  you can find the source of this on 
> http://www.web2py.com/appliances 
please,
where can I find the lastest tutorial that tells me how to get a web2py 
app on GAE presuming that
a) I am registered at appspot
b) have registered an app there?

I have not yet succeeded.

Thanks,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29953] Re: Google Apps wep2py applications

2009-09-03 Thread Tim Michelsen

Yeah,
I succeeded with
> https://mdp.cti.depaul..edu/wiki/default/page/16d1ac84-88de-4f46-a68c-0210ee026edb
>  
http://w2psphinx.appspot.com/init/default/index

One question though: Does GAE work only with one appliance?

There is the usual link to examples:
click here for online examples - 
http://w2psphinx.appspot.com/examples/default/index

leads to an "Invalid request".

Could you explain this to me?

Thanks a lot,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29894] Re: Feature proposal: easier table creation

2009-09-03 Thread Tim Michelsen

> It would be nice.
Does this mean "someone can do it"?
Or is this accepted as offical task?

> It would have to be web based.
I think for large data bases, it would also be good to have a CLI based 
converter which creates an database dump and a python file with the 
table definition.

Regards,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:29993] current status of Sphinx docs

2009-09-03 Thread Tim Michelsen

Hello,
you can find the current statu of the SPhinx docs here:
http://w2psphinx.appspot.com/

There is a lot of trouble with the gluon modules.

All modules not listed in:
http://w2psphinx.appspot.com/init/static/sphinx/docs-web2py/modules_autosummary.html

produce the following error in Sphinx:
http://bitbucket.org/birkenfeld/sphinx/issue/217/autogen-aborts

Currently, I can't do anything about it as this is either a web2py bug
or a Sphinx error.

Best regards,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30337] connecting to existing SQLite database

2009-09-07 Thread Tim Michelsen

Hello,
I have troubles connecting and using an existing SQLite table from web2py.

Here are my steps and difficulties

1) imported an existing table into sqlite
2) table definition with migrate=False
=> I get no values/entries shown in the database administration!

If I set migrate=True I get an error ticket telling that the table exists.

"OperationalError: table mydata already exists"

Why does this happen?

How can I connect to an existing sqlite table?
Do I need to create a ID column before?
Can I  define another table field as id?

Thank for your help in advance,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30426] Re: connecting to existing SQLite database

2009-09-08 Thread Tim Michelsen

>>> If you need to access legacy databases the best way is to create a
>>> database view for your table.
>> How do I do this?
>> Can you give an example or reference (to your book)?
> 
> No because that is something data is database dependent and not done
> within web2py. I am not an expert on this. There have been threads on
> this issue on this list.
I found:
How to create a hidden field in CRUD?
http://groups.google.com/group/web2py/browse_thread/thread/3bd5f4a9a131ddf5/40c031d4adc7b0ec

Legacy Database Id Field
http://groups.google.com/group/web2py/browse_thread/thread/5498146289495bd2/9f85de261a324c86


They do not really help...

Any pointer?

Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30535] Re: connecting to existing SQLite database

2009-09-09 Thread Tim Michelsen

Yarko Tymciurak schrieb:
> which db server are you dealing with?
local:
file://mydb.sqlite


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30539] Re: Uploading File for Statistical Operations

2009-09-09 Thread Tim Michelsen

> prototype - suggest you start by establishing the basic data you want;
> You can create the table definitions in the admin interface, and then 
> load them with some test data from csv files in the admin interface.
Actually, you don't need to create tables.
Because you seem to upload different data everytime for new calculations.
Would that mean that you create a new table in the database everytime?
I doubt that you want this.

Do you care for storing the input in web2py?

If not,
1) just read serve your data as a stream to a StrinIO.
Massimo may tell more about this.

2) read the stream with numpy into an array:
Example: 
http://www.nabble.com/numpy:-loadtxt-with-default-value-td24987747.html

3) then use array for your number crunching.

You may find some inspriation her:
http://books.google.de/books?id=j7QbD83-h8AC&lpg=PP1&pg=RA2-PA275
Its use of cgi may be outdated. But there are some good ideas for the 
design.

Please keep us updated or even post your app,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:30543] Re: Uploading File for Statistical Operations

2009-09-09 Thread Tim Michelsen

> You may find some inspriation her:
> http://books.google.de/books?id=j7QbD83-h8AC&lpg=PP1&pg=RA2-PA275
> Its use of cgi may be outdated. But there are some good ideas for the 
> design.
more specifically:
http://books.google.de/books?id=j7QbD83-h8AC&lpg=PP1&pg=RA2-PA286


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:31963] Re: video on wiki in 3 minutes

2009-09-30 Thread Tim Michelsen

Hi,
please see my comment here:
http://vimeo.com/6782736

Please create a page (sub-pag of documentation on main web2py) and post 
all appliances that you use in the videos.
This could help learning along these videos a lot.

Thanks,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:32427] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen

Hi Alvaro,
if you need help with the sphinxification send me a mail.
My current web2py project got stalled somehow. Therefore, please send me 
a direct mail if you have special questions to documentation. I am not 
readying this list every day.
Yarko wanted to add some docstring specs, but he hasn't made it so far.
The Sphinx-Project got stalled due to some bug/problem in the API doc 
generation.
I will try to trace it with the Sphinx project.

> Future plans:
> - Move AlterEgo pages to wiki and create a "FAQ" page in wiki with a
> list - please don't do it manually, I'll do a script to do this job
> (probably next weekend);
It's there already.
Here:
http://bazaar.launchpad.net/~timmie/web2py/web2py-appdocu/annotate/head%3A/doc/convert_faq.py
Ask Massimo to send you a recent dump of the AlterEgo

Thanks for the efforts & regards,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:32430] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen

comment on page:
http://wiki.web2py.com/Documentation_HOWTO

the primer at:
http://sphinx.pocoo.org/latest/rest.html

is much better to get you started with ReST


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:32432] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen

Error when registering:

http://wiki.web2py.com/_user/_register

=> 404 NOT FOUND


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:32437] Re: [New] web2py wiki

2009-10-07 Thread Tim Michelsen

> However,  I have recently seen that Bruce Eckel is thinking about using 
> MoinMoin for contributions to Python Pattersn & Idioms (people seemed ot 
> have a hard time ??? with editing Sphinx - though I can't imagine why - 
I think we have to distiguish:
Books and documentations.
docs are part of the code in soem way. should be easy, short, 
straightforward. should be included in the VCS.

> it's the simplest basic thing to me), and I thought about how - with 
> cron - that a web2py reST blog would be a nicer solution (since Sphinx 
> generation / "publishing" could be done w/ cron).
Yes, if Alvaro would create a Sphinx sandbox on his box we could even 
use web2py to edit the Sphinx doc and the docstrings online.
like the numpy community.

> Sphinx has bugs?  the web2py sphinx has problems?  Not sure what you are 
> saying here.
http://bitbucket.org/birkenfeld/sphinx/issue/217/autogen-aborts
This happened whith web2py docstrings.


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:32517] geo-capabilities for DAL

2009-10-08 Thread Tim Michelsen

Hi Massimo,
there is an interesting project for SQLAlchemy:

GeoAlchemy: Using SQLAlchemy with Spatial Databases
http://geoalchemy.org/

Do you think something like this is possible with the DAL you are writing?

Best,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:34519] Re: web2py 1.68.1 is OUT

2009-11-03 Thread Tim Michelsen

Hello,

> legacy database support for db2, mssql with non-int primary keys
> (thanks Denes)
Does this also work with SQLite?

Best regards,
Timmie


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:35057] Re: Other new DAL features in trunk

2009-11-10 Thread Tim Michelsen

> 1) to deal with legacy databases
> 
>   db.define_table('mytable',Field('myfield','id'),Field
> ('otherfield'))
does legacy database id settings also support SQLite tables?


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



Re: [web2py:36636] Sphinx

2009-12-06 Thread Tim Michelsen
> We have had some discussion about moving the documentation to Sphinx.
> Months have passed and there has been no progress. I personally do not
> mind epydoc but some of you really liked Sphinx.
> 
> If you know Sphinx and want web2py to use it, please help us.
Again, I tried to help some months ago. My priorities have changed and I
am not working with web2py on every-day basis.

I tried to create a API documentation but got stopped by the following
issue:
http://bitbucket.org/birkenfeld/sphinx/issue/217/autogen-aborts

Maybe it works with all the recent bug fixed?

We need to try out.

If there are more users, I can give assistance.

--

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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




Re: [web2py:36703] Re: sqlite legacy support

2009-12-07 Thread Tim Michelsen
> "Support for legacy tables" can have two meanings:
> 
> 1) Legacy tables that need an alias for the id field.
> sqlite supports this case.


> 2) Legacy tables that use primary keys (not an id field) to get the
> records.
> sqlite does not support this AFAIK.


What I have is a CSV file.
The data is from:
http://www.ncdc.noaa.gov/oa/climate/rcsg/cdrom/ismcs/alphanum.html

I converted this into a SQLITE file with sqlite-browser.

How can I make web2py connect to that data base?
Normall, web2py would require to generate its ID field.
But I would rather use the "Number" column as id / identifier.

Could you please give me some hints?

Thanks in advance,
Timmie

--

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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




Re: [web2py:36715] Re: sqlite legacy support

2009-12-07 Thread Tim Michelsen
> number is not unique, can it even be used as a PK?
thanks for the response.

How can I use the first number as PK in this better version of the list:
http://www.wetterzentrale.de/klima/stnlst.html

Please assist.

Thanks in advance,
Timmie

--

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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




Re: [web2py:36924] Re: sqlite legacy support

2009-12-09 Thread Tim Michelsen
> and create a CSV like this
> 
> t.staid,t.stacall,t.location,t.state,t.lat,t.lon,t.elev
> 010017,ENFR,FRIGG,NO,5956N,00200E,0
> 010015,ENBL,FORDE/BRINGELAND,NO,6127N,00552E,0150
> 010030,,HORNSUND RIVER,NO,7700N,01530E,0012
> 
> 
> note that if elev is missing you must put a 0 (zero).
Thanks.

By this appraoch you import the data into the database used by web2py.
What if the data base already exists as a independant sqlite file and I
just want web2py connect to that one?

How would I show web2py (my model) which field to use as ID?

Thanks,
Timmie

--

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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




Re: [web2py:36994] Re: sqlite legacy support

2009-12-10 Thread Tim Michelsen
> You can tell your model the path to the existing sqlite database file
> with something like
[...]

Thanks a lot for your verbose help! I really appreciate it.

> As for telling it which existing field to use as the ID, as DenesL
> pointed out if the field isn't already named ID I don't think you can
> at the moment.
> 
> If you really want to use the station number (t.staid) as your ID, why
> not just add a new field called ID to your existing table (using
> sqlite-browser) and then set the value to match t.staid? Something
> like
I am not a database guru. So I still do not understand why t.staid could
not be the PK (= ID).

Regards,
Timmie

--

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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




Re: [web2py:37384] Re: web2py blog screencast

2009-12-16 Thread Tim Michelsen
Mengu schrieb:
> i am now uploading video to youtube, hope this one works. will let you
> guys know the url.
I couldn't download it from Rapidshare either.

--

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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




Re: [web2py:37625] Re: OpenLayers is not defined

2009-12-21 Thread Tim Michelsen
> The effect of response.files.append('http://../lib/OpenLayers.js')
> is that the .sj file gets included in the header of the layout.html
> This assumes you have a recent web2py_ajax.html
I did it like this:
* copy web2py_ajax.html to web2py_ajax_ol.html
* in your map view use web2py_ajax_ol.html instead of the default.
* put the java script stuff in the header of that file
* see if that works. the examples of OL can help you.

--

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, send email to 
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.




[web2py:19175] Re: using web2py for Geo / GIS stuff

2009-04-05 Thread Tim Michelsen

Hello,
thanks for everyone how responded to my inquiry.

I can see that the interest in geo stuff is there.

What would you guys think of the idea to put the stuff from Sahana and 
pycon into a common respository and develop the geo functionality together?

Thanks again and regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:19197] Re: using web2py for Geo / GIS stuff

2009-04-05 Thread Tim Michelsen

> I think it would be very valuable.
Nice.
What would you suggest?
The web2py repository or an external one?

Why not an example app?

Regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:20103] Re: Request for more organize feature request lists...

2009-04-20 Thread Tim Michelsen

> I guess I see the checking-for-valid-bug phase a step that others can do
> to help lift some of the load off of members that can code.  But your
> right, there is a lot of garbage reports out there.
> I just wish there was a way, that when I have the time, I can sit down
> and start to sift through reports and start solving them all from one
> place.  I can see a list of bugs and even sort them to my liking.  Pick
> out the ones I think I can help fix and proceed from there.
> At some point I think we should consider moving bugs to an area that can
> be better delegated.  But for now, as you know, this project has been
> doing a great job helping fix issues in the system.
What about entering a request at Launchpad and then post it at the 
mailing list for discussion.
What I can see from the short time I am following this project I get the 
impression that:
* a lot of useful tips get burried in the mailing list
* some mails are left unanswered
* the documentation in the manual is good for learning but getting outdated.

So, to my opinion, it could be useful for tracking purposes to keep docs 
and issues at a central place.

Thanks for your work on this smart app,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



[web2py:20113] Re: transpose a SQLTABLE in view

2009-04-20 Thread Tim Michelsen

>> instead of:
>>
>> header1  header2  header3
>> value_row1 value_row1 value_row1
>> value_row2 value_row2 value_row2
>>
>> I would like to have:
>>
>> header1value_row1 value_row2
>> header2value_row1 value_row2
>> header3value_row1 value_row2
>>

> itertools could help if you have a big resultset:
> 
> In [1]: l = [   
>: ('h1row1','h2row1','h3row1'),
>: ('h1row2','h2row2','h3row2'),
>: ('h1row3','h2row3','h3row3')
>: ]
> 
> In [2]: import itertools
> 
> In [3]: for val in itertools.imap(list, itertools.izip(*l)):
>...: print val
>...: 
>...: 
> ['h1row1', 'h1row2', 'h1row3']
> ['h2row1', 'h2row2', 'h2row3']
> ['h3row1', 'h3row2', 'h3row3']

Hello,
thanks very much for your response!

I was more thinking of something like:

In [1]: import numpy as np

In [2]: a = np.zeros(10)

In [3]: a
Out[3]: array([ 0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.,  0.])

In [4]: resh = a.reshape(2,5)

In [5]: resh
Out[5]:
array([[ 0.,  0.,  0.,  0.,  0.],
[ 0.,  0.,  0.,  0.,  0.]])

In [6]: transp = resh.transpose()

In [7]: transp
Out[7]:
array([[ 0.,  0.],
[ 0.,  0.],
[ 0.,  0.],
[ 0.,  0.],
[ 0.,  0.]])

Promt [5] / resh shows the default output of SQLTABLE. I would like to 
have [7] / transp.

I think the quickest would be if I read the result of the query into an 
string array and then transpose it and convert back to with transp.tolist().

Rebuilding the table with the header, rows format in the view by using a 
hand-made HTML table is not in the elegant style of web2py.

But I will try yours and see what I get.

Regards,
Timmie


--~--~-~--~~~---~--~~
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 to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~--~~~~--~~--~--~---



  1   2   >