denis | 2 Oct 2009 13:29
Picon
Favicon

API to add a tree viewer / navigator to a web document ?

Folks,
  for one of you experts, this must be trivial / must exist already
within some big Python-web package:

say I'm looking at a long web doc.html which has no tree view on the
left,
but I can hack a local tree view file with level, name, href like

+ 1 US href=  ("+" button expands, "-" folds)
  2 Alabama href=
  3 ...
  2 Alaska href=
  ...
+ 1 Canada href=
  ...

Is there a small API that can generate a tree viewer / navigator from
this,
either side by side in the same browser window with the remote web
pages, or in a separate window ?
(The tree view lines can of course be reformatted to xml or whatever
the API wants.)

There are really 2 APIs here:
a) class TreeView
b) display the tree view and the remote web page in split windows.

(Is there a general introduction to Python-webbing
for someone who knows Python but almost no CSS nor web services ?)

(Continue reading)

Alastair "Bell" Turner | 5 Oct 2009 10:32
Picon
Gravatar

Session events

Hi

I've been looking through the range of choices for Python web
[application] frameworks/libraries (Just to have all the bases
covered) for a new build project and standardisation of some small
utilities. There's one feature that I'm not finding and was just
wanting to check on before considering the joys of rolling my own: I'm
not finding any support for user session events, I'm particularly
interested in being able to register a handler on session expiry or
cleanup. I've mainly been looking at the lighter weight frameworks
since my requirement for the new build is mainly aggregate and list
operations, so the least suitable load for ORMs.

Have I missed the feature session event somewhere?

Thanks

Alastair "Bell" Turner
_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org

Robert Brewer | 5 Oct 2009 17:24
Favicon
Gravatar

Re: Session events

Alastair "Bell" Turner wrote:
> I've been looking through the range of choices for Python web
> [application] frameworks/libraries (Just to have all the bases
> covered) for a new build project and standardisation of some small
> utilities. There's one feature that I'm not finding and was just
> wanting to check on before considering the joys of rolling my own: I'm
> not finding any support for user session events, I'm particularly
> interested in being able to register a handler on session expiry or
> cleanup. I've mainly been looking at the lighter weight frameworks
> since my requirement for the new build is mainly aggregate and list
> operations, so the least suitable load for ORMs.

I hope, for your own sanity, that by "rolling my own" you mean "my own
session extension", not "my own web framework." ;)

> Have I missed the feature session event somewhere?

You haven't missed it in CherryPy because we actually took it out a few
years ago on purpose--it was a request rare enough to warrant favoring
simplicity of the code base over feature creep. These days, the standard
approach in CP 3.x is to subclass cherrypy.lib.sessions.FileSession (or
one of the others), and add your own calls where you want them, then
just stuff your new class into the sessions module via
"cherrypy.lib.sessions.MyFileSession = MyFileSession" (and the config
system will automatically pick it up).

Robert Brewer
fumanchu@...

_______________________________________________
(Continue reading)

Henry Precheur | 5 Oct 2009 18:19

Re: Web Framework

On Sun, May 31, 2009 at 09:30:26AM -0700, Omar Munk wrote:
>    - A good documentation.
>    - Not to overkill like Django
>    - Easy and simple
>    - Just something like PHP but without the dirty style.
>    - I like Karrigell but it looks like it's dead do you know a clone of it?
>    - Not need a VPS to host it, just a server that has Python.

I would still recommend Django. I think it's the best web-framework if
you are beginning. It's not like PHP, but I don't know of anything like
PHP in Python.

> And creating your own is that hard?

Yes, it's hard, especially if you are new to web development.

Cheers,

--

-- 
  Henry Prêcheur
_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org
Massimo Di Pierro | 5 Oct 2009 18:26
Picon
Gravatar

Re: Web Framework

Have you looked into T3? 


If you know web2py it is based on it and uses the same syntax.
This is an old app, to be considered experimental and we working on a new/improved version for it.


Still it may be close to what you are looking for.

Massimo




On May 31, 2009, at 11:30 AM, Omar Munk wrote:

Hello

I'm Pynthon and I'm 14 years old. I'm coming from Holland so my English isn't very good. I'm looking for a good Python webframework. I liked Web2Py but it always can be better. I don't need a full admin app included. I just want to code it in my text editor just like PHP. Do you guys know a framework with:

  • A good documentation.
  • Not to overkill like Django
  • Easy and simple
  • Just something like PHP but without the dirty style.
  • I like Karrigell but it looks like it's dead do you know a clone of it?
  • Not need a VPS to host it, just a server that has Python.
I know it's almost impposbile but I seached everywhere! And creating your own is that hard?

Thanks,
Pynthon

<ATT00001..txt>

_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org
Jim Fulton | 5 Oct 2009 18:35
Gravatar

Re: Web Framework

On Sun, May 31, 2009 at 12:30 PM, Omar Munk <omar.website@...> wrote:
> Hello
>
> I'm Pynthon and I'm 14 years old. I'm coming from Holland so my English
> isn't very good. I'm looking for a good Python webframework. I liked Web2Py
> but it always can be better. I don't need a full admin app included. I just
> want to code it in my text editor just like PHP. Do you guys know a
> framework with:
>
> A good documentation.
> Not to overkill like Django
> Easy and simple
> Just something like PHP but without the dirty style.
> I like Karrigell but it looks like it's dead do you know a clone of it?
> Not need a VPS to host it, just a server that has Python.
>
> I know it's almost impposbile but I seached everywhere! And creating your
> own is that hard?

Bobo's main goal is simplicity:

  http://bobo.digicool.com/

Jim

--

-- 
Jim Fulton
_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org

Massimo Di Pierro | 5 Oct 2009 18:37
Picon
Gravatar

Re: Web Framework

Hey, this is more complex than web2py:

 <at> bobo.query('/')
def hello():
     return "Hello world!"

In web2py you do not need the first line. ;-)

Massimo

On Oct 5, 2009, at 11:35 AM, Jim Fulton wrote:

> On Sun, May 31, 2009 at 12:30 PM, Omar Munk <omar.website@...>  
> wrote:
>> Hello
>>
>> I'm Pynthon and I'm 14 years old. I'm coming from Holland so my  
>> English
>> isn't very good. I'm looking for a good Python webframework. I  
>> liked Web2Py
>> but it always can be better. I don't need a full admin app  
>> included. I just
>> want to code it in my text editor just like PHP. Do you guys know a
>> framework with:
>>
>> A good documentation.
>> Not to overkill like Django
>> Easy and simple
>> Just something like PHP but without the dirty style.
>> I like Karrigell but it looks like it's dead do you know a clone of  
>> it?
>> Not need a VPS to host it, just a server that has Python.
>>
>> I know it's almost impposbile but I seached everywhere! And  
>> creating your
>> own is that hard?
>
> Bobo's main goal is simplicity:
>
>  http://bobo.digicool.com/
>
> Jim
>
> -- 
> Jim Fulton
> _______________________________________________
> Web-SIG mailing list
> Web-SIG@...
> Web SIG: http://www.python.org/sigs/web-sig
> Unsubscribe: http://mail.python.org/mailman/options/web-sig/mdipierro%40cti.depaul.edu

_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org

Aaron Watters | 5 Oct 2009 19:39
Picon
Favicon
Gravatar

Re: Web Framework


--- On Sun, 5/31/09, Omar Munk <omar.website@...> wrote:

> From: Omar Munk <omar.website@...>
> Subject: [Web-SIG] Web Framework
> To: web-sig@...
> Date: Sunday, May 31, 2009, 12:30 PM
> Hello....
> A good documentation.
> Not to overkill like
> Django
> Easy and simple
> Just something like
> PHP but without the dirty style.
> I like Karrigell
> but it looks like it's dead do you know a clone of
> it?

Hi Omar.  Please have a look at WHIFF.
It has a lot of PHP-like features, but it's better :).

Please let me know what you think of it.
I'd be especially interested if you find
the documentation hard to understand --
please let me know where you got confused or
whatever.  Thanks.

http://aaron.oirt.rutgers.edu/myapp/docs/W.intro

By the way I agree that PHP is ugly and most
Python frameworks are too complicated.  I also
think the only reason PHP is so popular is
because there was never an appropriate Python
based alternative for the kinds of things
people like to do with PHP.  This is the vacuum
I'm trying to fill with WHIFF.

  -- Aaron Watters

===
less is more

_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org

Chris McDonough | 6 Oct 2009 02:49
Favicon
Gravatar

Re: Session events

This is supported at least here:

http://docs.repoze.org/session/usage.html#using-begin-and-end-subscribers

Alastair "Bell" Turner wrote:
> Hi
> 
> I've been looking through the range of choices for Python web
> [application] frameworks/libraries (Just to have all the bases
> covered) for a new build project and standardisation of some small
> utilities. There's one feature that I'm not finding and was just
> wanting to check on before considering the joys of rolling my own: I'm
> not finding any support for user session events, I'm particularly
> interested in being able to register a handler on session expiry or
> cleanup. I've mainly been looking at the lighter weight frameworks
> since my requirement for the new build is mainly aggregate and list
> operations, so the least suitable load for ORMs.
> 
> Have I missed the feature session event somewhere?
> 
> Thanks
> 
> Alastair "Bell" Turner
> _______________________________________________
> Web-SIG mailing list
> Web-SIG@...
> Web SIG: http://www.python.org/sigs/web-sig
> Unsubscribe: http://mail.python.org/mailman/options/web-sig/chrism%40plope.com
> 

_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org

Aaron Watters | 19 Oct 2009 19:58
Picon
Favicon
Gravatar

Re: API to add a tree viewer / navigator to a web document ?

WHIFF now has treeviews.

I will document the usage in a tutorial soonish.
In the mean time here are the test/demos

  reloading frame variant:
  http://aaron.oirt.rutgers.edu/myapp/root/misc/frameTest

  non-reloading ajax variant:
  http://aaron.oirt.rutgers.edu/myapp/root/misc/ajaxTest

The implementation supports large externally stored
trees.

Source for the implementations and demos
are available from the WHIFF mercurial archive

http://aaron.oirt.rutgers.edu/cgi-bin/whiffRepo.cgi

Hope you like!  -- Aaron Watters

===

"keep off the grass"
   Peter Ustinov's requested gravestone epitaph.

--- On Fri, 10/2/09, denis <denis-bz-gg@...> wrote:

> From: denis <denis-bz-gg@...>
> Subject: [Web-SIG] API to add a tree viewer / navigator to a web document ?
> To: web-sig@...
> Date: Friday, October 2, 2009, 7:29 AM
> Folks,
>   for one of you experts, this must be trivial / must
> exist already
> within some big Python-web package:
> 
> say I'm looking at a long web doc.html which has no tree
> view on the
> left,
> but I can hack a local tree view file with level, name,
> href like
> 
> + 1 US href=  ("+" button expands, "-" folds)
>   2 Alabama href=
>   3 ...
>   2 Alaska href=
>   ...
> + 1 Canada href=
>   ...
> 
> Is there a small API that can generate a tree viewer /
> navigator from
> this,
> either side by side in the same browser window with the
> remote web
> pages, or in a separate window ?
> (The tree view lines can of course be reformatted to xml or
> whatever
> the API wants.)
> 
> There are really 2 APIs here:
> a) class TreeView
> b) display the tree view and the remote web page in split
> windows.
> 
> (Is there a general introduction to Python-webbing
> for someone who knows Python but almost no CSS nor web
> services ?)
> 
> Thanks, cheers
>   -- denis
> 
> 
> 
> 
> 
> 
> _______________________________________________
> Web-SIG mailing list
> Web-SIG@...
> Web SIG: http://www.python.org/sigs/web-sig
> Unsubscribe: http://mail.python.org/mailman/options/web-sig/arw1961%40yahoo.com
> 
_______________________________________________
Web-SIG mailing list
Web-SIG@...
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: http://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org


Gmane