[ANN] pywebkit - python bindings for webkit DOM (alpha)

2010-10-07 Thread lkcl
From: l...@lkcl.net To: python-l...@python.org i've been kindly sponsored by http://www.samurai.com.br to create direct python bindings to webkit's DOM: http://www.gnu.org/software/pythonwebkit/ the significance of this project is that it makes python a peer of javascript when it comes to

Re: Parsing/Crawler Questions - solution

2009-03-07 Thread lkcl
NOT AS A GUI APP, then, thanks to the glib / gobject bindings, a python app will be able to walk the DOM tree as expected. i _just_ fixed pyjamas-desktop's iterators in the pyjamas.DOM module for someone, on the pyjamas-dev mailing list. http://github.com/lkcl/pyjamas-desktop/tree

Re: Parsing/Crawler Questions - solution

2009-03-08 Thread lkcl
-desktop's iterators in the pyjamas.DOM module for someone, on the pyjamas-dev mailing list. http://github.com/lkcl/pyjamas-desktop/tree/8ed365b89efe5d1d3451c3e3c... dd014540 so, actually, you may be better off starting from pyjamas-desktop and then cutting out the fire up the GTK window bit, from

how do you prevent distutils from downloading and building packages without consent?

2009-03-26 Thread lkcl
folks, hi, a number of people using pyjamas are not only encountering difficulties with setup.py endeavouring to download and install setuptools but also they are ... the best word to use is unfortunately offended - by the fact that distutils, in its default configuration, downloads and even

Re: how do you prevent distutils from downloading and building packages without consent?

2009-03-28 Thread lkcl
read the setuptools documentation? Didn't you *test* your setup.py before making it available to the world? yes - and it worked on my debian linux box. so, off it went. turns out that it worked because i had python-setuptools preinstalled. alarmed to find that setup.py, thanks to

Re: how do you prevent distutils from downloading and building packages without consent?

2009-03-28 Thread lkcl
option to the pyjs main() function - it's a little obscure, but works out fine. e.g. if you specify no arguments, this gets auto-generated, in ./bin/ pyjsbuild : #!/usr/bin/python pth = '/home/lkcl/src/sf.pyjamas/svn-pyjamas/pyjamas' import os import sys sys.path[0:0] = [ pth, ] import pyjs

Re: how do you prevent distutils from downloading and building packages without consent?

2009-03-28 Thread lkcl
http://mail.python.org/pipermail/distutils-sig/2008-March/008925.html dang. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
On Mar 18, 8:01 pm, Greg gregsaundersem...@gmail.com wrote: Hello all, I've been trying to find a way to fetch and read a web page that requires javascript on the client side and it seems impossible. you're right: it's not impossible. I've read several threads in this group that say as much

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
company who are doing vala bindings are using - use the version that i've worked on, until they support the full DOM bindings. better yet, just grab the code from the git repository i'm maintaining - http://github.com/lkcl/webkit/tree/16401.master I remember someone saying yep, it was me :) you

Re: read web page that requires javascript on client

2009-03-29 Thread lkcl
On Mar 20, 1:09 am, Greg gregsaundersem...@gmail.com wrote: On Mar 18, 7:25 pm, Carl tg2.u...@gmail.com wrote: On Mar 18, 1:56 pm, a...@pythoncraft.com (Aahz) wrote: In article mailman.2143.1237407931.11746.python-l...@python.org, R. David Murray rdmur...@bitdance.com wrote: That

Re: Embed a web browser into a page

2009-03-29 Thread lkcl
#13 and webkit-glib/gdom (webkit with patch #16401, or use my pre-patched tree - http://github.com/lkcl/webkit/tree/16401.master So can someone suggest what would be required to build a cross-platform Python app that was capable of browsing HTML files, receiving events from the browser

Re: Embed a web browser into a page

2009-03-29 Thread lkcl
On Feb 12, 9:22 am, Diez B. Roggisch de...@nospam.web.de wrote: Carbon Man wrote: Hi, I need to embed a web browser into a python page. I am coming from the MS world where I created an app that all of it's interfaces were actually web pages rendered in an Internet Explorer activex

Re: Best Compatible JS Lib for Django

2009-04-12 Thread lkcl
On Apr 4, 7:20 pm, Daniel Fetchinson fetchin...@googlemail.com wrote: Does anyone have experience with using JS Libraries with Django? yes - pyjamas - http://pyjs.org - although, strictly speaking, it's a python widget-set and python-to-javascript compiler. the possibility now of being able

Re: Python on JavaScript VM's (such as V8)?

2008-10-02 Thread lkcl
On Sep 3, 10:02 pm, [EMAIL PROTECTED] wrote: Berco Beute: I wonder what it would take to implement Python in JavaScript so it it's been done. http://pyjamas.sf.net can run on those fancy new JavaScript VM's such as Chrome's V8 or that's been done, too.

Re: javascript to python

2008-10-02 Thread lkcl
On Oct 2, 5:54 pm, Joe Hrbek [EMAIL PROTECTED] wrote: Could someone help me translate to something that would close to it in python? The anonymous functions are giving me problems. class dataListener: def __init__(self): data = def onStartRequest(self, request, context):

Re: javascript to python

2008-10-03 Thread lkcl
On Oct 2, 7:42 pm, Bruno Desthuilliers [EMAIL PROTECTED] wrote: lkcl a écrit : On Oct 2, 5:54 pm, Joe Hrbek [EMAIL PROTECTED] wrote: Could someone help me translate to something that would close to it in python? The anonymous functions are giving me problems. class dataListener

Re: javascript to python

2008-10-03 Thread lkcl
On Oct 3, 10:29 am, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: lkcl a écrit : On Oct 2, 7:42 pm, Bruno Desthuilliers [EMAIL PROTECTED] wrote: lkcl a écrit : Not 'mine' - I'm not the OP. whoops, yes - i missed that. sorry! And as far as I'm concerned, the point is exactly here

Re: javascript to python

2008-10-03 Thread lkcl
so, if i do this: d = dataListener() e = dataListener() d.data = fred print f.data duh, duh - that should be print e.data :) -- http://mail.python.org/mailman/listinfo/python-list

Re: component / event based web framework for python?

2008-10-10 Thread lkcl
On Sep 15, 4:53 pm, Jaime Barciela [EMAIL PROTECTED] wrote: Hello all, I've been surveying the field ofpythonweb frameworks for a while but there are just too many so I ask mighty Usenet. Is there a component / event based web framework forpython? Something that can abstract you from the

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
3) Following the public rumor mill and the latest hype RIA i.e. the merge of web- and desktop applications with systems like Adobe AIR, JavaFX, Google Gears and MS Silverlight is the future of frontend development. With the exception of IronPython and Silverlight, Python hasn't even entered

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
The role of Python is somewhat arbitrary. This could change only if Python becomes a client side language executed by AVM, V8 etc. pyv8 - http://advogato.org/article/985.html pyjs.py - standalone python-to-javascript compiler, see http://pyjs.org. --

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
On Sep 17, 1:16 am, Todd Whiteman [EMAIL PROTECTED] wrote: Todd Whiteman wrote: Mark Hammond's Python/Mozilla work has enabled products like Komodo, Miro (Democracy) and the OLPC project to use Python as a major driver for consistent cross-platform GUI applications. Personally, I believe

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
On Sep 3, 4:34 pm, Michael Palmer [EMAIL PROTECTED] wrote: So far, development of PyGUI seems to be a one-man effort, and it may be slowed down by the attempt to develop the API and the implementations concurrently. Could it be useful to uncouple the two, such that the API would be specified

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
On Oct 11, 3:31 pm, David Boddie [EMAIL PROTECTED] wrote: On Saturday 11 October 2008 11:19, lkcl wrote: pyqt4 has the concept of layouts. a layout can be a horizontal layout, vertical, grid, and you can even specify the percentage or ratio of the width (or height) that individual cells

Re: PyGUI as a standard GUI API for Python?

2008-10-11 Thread lkcl
ofhttp://code.google.com, and you'll need to check out a revision some time around sep 2007 of the llpamies branch. rsrrmsrrwssrrfssnrssrr :) http://code.google.com/p/pyjamas then follow through to svn instructions, bearing in mind that, other than the llpamies branch, that code is

Re: Safe eval of insecure strings containing Python data structures?

2008-10-13 Thread lkcl
On Oct 9, 4:32 am, James Mills [EMAIL PROTECTED] wrote: On Thu, Oct 9, 2008 at 2:26 PM, Warren DeLano [EMAIL PROTECTED] wrote: JSON rocks! Thanks everyone. Yes it does :) Ben wrote: More generally, you should never execute (via eval, exec, or whatever) *any* instruction from an

Re: PyGUI as a standard GUI API for Python?

2008-10-13 Thread lkcl
On Oct 11, 11:17 pm, Terry Reedy [EMAIL PROTECTED] wrote: lkcl wrote: I got the impression that there is currently no Windows binary available. Correct? If not, perhaps someone trustworthy will someday donate one. sorry, terry, you deleted a bit too much context :) so, assuming that you

Re: urllib equivalent for HTTP requests

2008-10-13 Thread lkcl
On Oct 8, 7:34 am, Diez B. Roggisch [EMAIL PROTECTED] wrote: I would like to keep track of that but I realize that py does not have a JS engine. :( Anyone with ideas on how to track these items or yep. What you can't do though is to get the requests that are issued byJavascriptthat is

Re: parsing javascript

2008-10-13 Thread lkcl
On Oct 12, 2:28 pm, Philip Semanchuk [EMAIL PROTECTED] wrote: On Oct 12, 2008, at 5:25 AM, S.SelvamSivawrote: I have to do a parsing on webpagesand fetch urls.My problem is ,many urls i need to parse are dynamically loaded usingjavascriptfunction (onload()).How to fetch those links from

Re: Python on JavaScript VM's (such as V8)?

2008-10-13 Thread lkcl
On Oct 7, 10:15 pm, Fuzzyman [EMAIL PROTECTED] wrote: On Oct 2, 1:06 pm,lkcl[EMAIL PROTECTED] wrote: On Sep 3, 10:02 pm, [EMAIL PROTECTED] wrote: Berco Beute: I wonder what it would take to implement Python inJavaScriptso it it's been done. http://pyjamas.sf.net That's hardly

Re: PyGUI as a standard GUI API for Python?

2008-10-13 Thread lkcl
You can remove layouts from layouts with the QLayout.removeItem() method. yes... it didn't work. a layout within a layout - i think it was a QHorizontalLayout within a QGridLayout - didn't want to be removed. it's probably a bug. Was it detached from the layout, but still visible? i

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
Although using browser technologies for desktop applications is interesting (and not new by any means), there are a few things with regard to layouts which are very difficult with Web technologies (and aren't getting any easier, either) but which are almost trivial with classic graphical user

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
On Oct 13, 9:12 pm, Terry Reedy [EMAIL PROTECTED] wrote: lkcl wrote: On Oct 11, 11:17 pm, Terry Reedy [EMAIL PROTECTED] wrote: lkcl wrote: I got the impression that there is currently no Windows binary available. Correct? If not, perhaps someone trustworthy will someday donate one

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
if there's a way to enforce the displaying of text - for the _text_ to say i need to be a total area of X in order to display my words. if you make my width too small, i will _force_ my height to be larger as i wrap the text. just like an HTML p /p does. ... of course, i'm well aware of

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
On Oct 13, 9:59 pm, Orestis Markou [EMAIL PROTECTED] wrote: Just want to say, thank you for a very enlightening writeup. You should really post this somewhere that we can link to. orestis, thank you for the encouragement. i did post it on my diary: http://advogato.org/person/lkcl/diary/523

Compiling Webkit-Glib and PyWebkitGTK for Win32

2008-10-14 Thread lkcl
. http://github.com/lkcl/webkit/tree/16401.master then, once you have a libwebkit.dll, you'll be in a position to recompile pywebkitgtk for windows. this should be very very straightforward: there's nothing out-of-the-ordinary, other than you must patch it, use the last download / attachment from

Re: Safe eval of insecure strings containing Python data structures?

2008-10-14 Thread lkcl
On Oct 13, 6:12 pm, George Sakkis [EMAIL PROTECTED] wrote: On Oct 13, 8:36 am,lkcl[EMAIL PROTECTED] wrote: On Oct 9, 4:32 am, James Mills [EMAIL PROTECTED] wrote: On Thu, Oct 9, 2008 at 2:26 PM, Warren DeLano [EMAIL PROTECTED] wrote: JSON rocks! Thanks everyone. Yes it does

Re: Compiling Webkit-Glib and PyWebkitGTK for Win32

2008-10-14 Thread lkcl
the reason why you'll need python-gtk2 is because of codegen.py - that is used to turn the webkit.defs into a webkit.c file. this might help: http://aruiz.typepad.com/siliconisland/2006/12/allinone_win32_.html it includes python-gobject, python-gtk, gtk runtime and much more. exactly _how_

Re: PyGUI as a standard GUI API for Python?

2008-10-14 Thread lkcl
On Oct 13, 10:56 pm, David Boddie [EMAIL PROTECTED] wrote: On Monday 13 October 2008 11:42, lkcl wrote: i don't know if it _was_ detached from the layout, but it was definitely still visible. see http://pyjs.org/examples/gridtest/output/GridTest.html for the example i was porting

Re: PyGUI as a standard GUI API for Python?

2008-10-15 Thread lkcl
On Oct 15, 12:27 am, greg [EMAIL PROTECTED] wrote: Paul Boddie wrote: there are a few things with regard to layouts which are very difficult with Web technologies (and aren't getting any easier, either) but which are almost trivial with classic graphical user interface toolkits, and of

Re: PyGUI as a standard GUI API for Python?

2008-10-15 Thread lkcl
hello_loader.py is the main err um i just double- checked, so i'd be able to advise you and... err... the problem i described (with the GridTest) seems to have... gone away!! There are lots of references to PyGTK classes in there. yes, that's because i had started with the

Re: Compiling Webkit-Glib and PyWebkitGTK for Win32

2008-10-15 Thread lkcl
terry, hi: instructions to ensure that you have the right build environment for windows is here: http://webkit.org/building/tools.html it's not made clear whether the use of VS 2005 will _automatically_ download all of the build dependencies for you - you'll have to find out :) regarding

Re: 2.6, 3.0, and truly independent intepreters

2008-11-04 Thread lkcl
On Oct 30, 6:39 pm, Terry Reedy [EMAIL PROTECTED] wrote: Their professor is Lars Bak, the lead architect of the Google V8Javascriptengine. They spent some time working on V8 in the last couple months. then they will be at home with pyv8 - which is a combination of the pyjamas

Re: push-style templating - an xml-like way to process xhtml

2008-11-05 Thread lkcl
On Nov 2, 11:19 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Push-style though enhances the risk of mixing program logic with presentation-logic (as simple print-statements do), and makes it a precondition that anybody who's supposed to tinker with the softare needs to be knowledgable in

Re: Looking for a nitty-gritty Python Ajax middleware script to fire off a number of processors

2008-11-17 Thread lkcl
On Nov 7, 10:38 am, Shao [EMAIL PROTECTED] wrote: Dear All, I am looking for a nitty-gritty Python Ajax script to fire off a number of processing programmes, periodically checking their operations, sending messages back to an HTML div form by sending back the links of generated data files,

Re: Django or TurboGears or Pylons? for python web framework.

2008-11-17 Thread lkcl
On Wed, 05 Nov 2008 08:35:23 +0200, 3000 billg [EMAIL PROTECTED] Just from my preferences, I want to useDjangobut the AJAX support will be a problem. Also I need to select a JavaScriptframeworkand lean it, maybe JQuery, mootools or other. And I can not writepythonas it is written in

Applying a decorator to a module

2008-11-27 Thread lkcl
Very simple question: how do you apply a decorator to an entire module? an idea whose time has properly arrived is to merge pyjamas (http://pyjs.org) into web2py (http://web2py.com), and to do that, it's necessary to identify functions, classes, global variables and modules that should be

Re: Applying a decorator to a module

2008-11-27 Thread lkcl
On Nov 27, 7:43 pm, [EMAIL PROTECTED] wrote: lkcl Very simple question: how do you apply a decorator to an entire lkcl module? Function-by-function or class-by-class. There is no decorator support for modules. awWww! i'm going to quietly throw my toys out of my pram

Re: Python+Pyjamas+V8=ftw

2008-12-02 Thread lkcl
Another project similar-ish to Pyjamas is HotRuby:http://hotruby.yukoba.jp/ also there's RubyJS: http://rubyforge.org/projects/rubyjs/ it's again a javascript compiler - ruby to javascript - and the beginnings of a port of GWT to Ruby, called rwt. this project _definitely_ needs more

Re: Pyjamas 0.4: Python Web Toolkit Release

2008-12-02 Thread lkcl
On Dec 2, 6:52 pm, Duncan Booth [EMAIL PROTECTED] wrote: Luke Kenneth Casson Leighton [EMAIL PROTECTED] wrote: Pyjamasstarted as a port of Google's Web Toolkit, to python. Explaining whyPyjamas(and GWT) is so significant takes some doing: the summary is that comprehensive desktop-like

Re: Creating an application for Linux

2008-12-31 Thread lkcl
hiya mike: where do i know you from? i've heard your name somewhere and for the life of me can't remember where! anyway... onwards. your simplest bet is to take advantage of the .deb install system, which, if you follow that, will allow you to pull in all of the dependencies _without_ screwing

Re: Creating an application for Linux

2009-01-01 Thread lkcl
On Dec 31 2008, 9:54 pm, Mike Driscoll kyoso...@gmail.com wrote: On Dec 31, 3:36 pm,lkclluke.leigh...@googlemail.com wrote: hiya mike: where do i know you from? i've heard your name somewhere and for the life of me can't remember where! anyway... onwards. I don't know...while your

Re: Creating an application for Linux

2009-01-02 Thread lkcl
On Jan 1, 4:44 pm, Mike Driscoll kyoso...@gmail.com wrote: On Jan 1, 7:47 am,lkclluke.leigh...@googlemail.com wrote: On Dec 31 2008, 9:54 pm, Mike Driscoll kyoso...@gmail.com wrote: On Dec 31, 3:36 pm,lkclluke.leigh...@googlemail.com wrote: hiya mike: where do i know you from? i've

Re: compiling python2.5 on linux under wine

2009-01-08 Thread lkcl
is here: http://github.com/lkcl/pythonwine/tree/python_2.5.2_wine patch is also here: http://bugs.python.org/issue4880 -- http://mail.python.org/mailman/listinfo/python-list

Re: compiling python2.5 on linux under wine

2009-01-08 Thread lkcl
... nd, that means disabling setup.py or hacking it significantly to support a win32 build, e.g. to build pyexpat, detect which modules are left, etc. by examining the remaining vcproj files in PCbuild. ok - i started the hacking. the first bit of hacking is this, in

Re: Mod_python, jsonrpc and sessions

2009-01-14 Thread lkcl
On Jan 14, 4:47 pm, p3dda.a...@googlemail.com wrote: Hi, I've got a python web-application being served by apache via mod_python, in which the users sessions are tracked via the mod_python Session module. Some of websites generated contain a java-script function which starts a jsonrpc call

Re: imputil.py, is this a bug ?

2009-11-07 Thread lkcl
On Nov 7, 2:20 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: Yes, seems to be a bug. But given the current status of imputil, it's not likely to be fixed; certainly not in 2.5 which only gets security fixes now. well, that bug's not the only one. the other one that i found, which i

Re: Newbie advice

2009-11-10 Thread lkcl
On Oct 29, 7:00 am, alex23 wuwe...@gmail.com wrote: However, if you're already comfortable with HTML/CSS, I'd recommend taking a look atPyjamas, which started as a port of the Google Web Toolkit, taking Python code and compiling it into javascript. The associated project,Pyjamas-Desktop, is a

Re: What happened to pyjamas?

2010-02-22 Thread lkcl
On Feb 19, 2:43 pm, John Pinner funth...@gmail.com wrote: It appears that, in trying to cut down spm, somone chahnged a DNS entry and screwed it up : it shouldbe back before long. yep. i've now got access to the web interface for the dns whois records. they got poo'd up (only one entry) and

Re: look at the google code

2010-02-22 Thread lkcl
On Feb 19, 10:41 am, Allison Vollmann allisonv...@yahoo.com.br wrote: http://code.google.com/p/pyjamas/ Last update from yesterday, is the same project? only the tarballs are maintained on there, and the wiki and the issue tracker. we couldn't get control of that site for quite some time so

port of GWT GChart to python pyjamas

2009-08-30 Thread lkcl
the excellent GWT Chart Library, GChart: http://code.google.com/p/gchart/ is being ported to python, to run under the pyjamas [desktop / web] widget set: http://pyjamas.svn.sourceforge.net/viewvc/pyjamas/trunk/library/pyjamas/chart/ approximately 15 of the 30 examples and 1 of the 90 test

port of GWTCanvas to python / pyjamas

2009-09-01 Thread lkcl
as part of the recent porting of GGhart to pyjamas, a massive performance gain can be had by using SVG Canvas. unfortunately, that meant porting GWTCanvas to pyjamas as well. this is also progressing well: http://pyjs.org/examples/gwtcanvas/ if anyone would like to help with the porting effort

Re: port of GWT GChart to python pyjamas

2009-09-01 Thread lkcl
been ported already, enough to show that the libray is in a mostly useable state, even after only three days. pie-charts are proving slightly problematic (as GChartExample24, which is a pie chart editor, shows). fixed. demo at :

Re: Python- javascript

2009-09-06 Thread lkcl
On Aug 16, 12:02 am, Mike Paul paul.mik...@gmail.com wrote: I'm trying to scrap a dynamic page with lot ofjavascriptin it. Inorder to get all the data from the page i need to access thejavascript. But i've no idea how to do it. Say I'm scraping some site htttp://www.xyz.com/xyz

Re: Python or ActionScript 3.0

2009-09-06 Thread lkcl
On Aug 15, 9:32 pm, Jaseem jas...@gmail.com wrote: Hi, Is python similar to actionscript 3.0 Which is better to create a rich gui internet application? can i suggest that you read this: http://www.javalobby.org/articles/ajax-ria-overview/ and then take a look at this: http://pyjs.org

Re: Python or ActionScript 3.0

2009-09-06 Thread lkcl
On Aug 16, 1:29 am, Douglas Alan darkwate...@gmail.com wrote: But both python and AS 3.0 is almost identical. No, Python and ActionScript are not almost identical. the AS 3.0 implementation is entirely missing declarative style of programming: it is purely event-driven. i.e. you cannot get

Re: Python or ActionScript 3.0

2009-09-06 Thread lkcl
On Aug 16, 5:43 am, Michel Claveau - MVPenleverlesx_xx...@xmclavxeaux.com wrote: Hi! Python doesn't run in your typical web browser Yes, Python can do it... on Windows. and linux. pyxpcomext. it's a bit of a pig, but perfectly doable: http://pyxpcomext.mozdev.org/tutorials.html Two

Re: Python or ActionScript 3.0

2009-09-06 Thread lkcl
On Sep 6, 3:19 pm, lkcl luke.leigh...@googlemail.com wrote: On Aug 16, 1:29 am, Douglas Alan darkwate...@gmail.com wrote: I think the future of client-side browser programming is actuallyJavaScript, not ActionScript, though that future may morph into one that mostly usesJavaScriptas

Re: platform-specific overrides of functions and class methods (expanding on imputils demo code)

2009-09-06 Thread lkcl
On Aug 21, 12:58 am, a...@pythoncraft.com (Aahz) wrote: In article 77715735-2668-43e7-95da-c91d175b3...@z31g2000yqd.googlegroups.com, lkcl luke.leigh...@googlemail.com wrote: if somebody would like to add this to the python bugtracker, as a contribution, that would be great

Re: platform-specific overrides of functions and class methods (expanding on imputils demo code)

2009-09-14 Thread lkcl
On Sep 6, 5:49 pm, Terry Reedy tjre...@udel.edu wrote: lkclwrote: On Aug 21, 12:58 am, a...@pythoncraft.com (Aahz) wrote: In article 77715735-2668-43e7-95da-c91d175b3...@z31g2000yqd.googlegroups.com, lkcl luke.leigh...@googlemail.com wrote: if somebody would like to add

Re: pyjamas in action?

2009-09-16 Thread lkcl
On Aug 31, 8:35 pm, André andre.robe...@gmail.com wrote: On Aug 31, 4:46 pm, kj no.em...@please.post wrote: At work we want to implement a webapp using Google's GWT, and we're debating whether to use the standard GWT approach with Java, or to tryPyjamas. There's no great love here for

Re: can python make web applications?

2009-09-16 Thread lkcl
On Aug 23, 3:12 pm, Deep_Feelings doctore...@gmail.com wrote: can python make powerfull database web applications that can replace desktop database applications? e.g: entrprise accounting programs,enterprise human resource management programs ...etc with pyjamas, as mark mentioned previously

[ANN] pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-18 Thread lkcl
just for fits and giggles and also because i'm getting fed up of using web browsers as part of the pyjs development cycle instead of the command-line, the pyjamas pyv8run.py has been brought back up-to- scratch, and can now execute the pyjamas LibTest regression tests with a 99.95% pass rate.

Re: can python make web applications?

2009-09-18 Thread lkcl
On Sep 16, 7:02 pm, Paul Boddie p...@boddie.org.uk wrote: On 16 Sep, 18:31, lkcl luke.leigh...@googlemail.com wrote: http://pyjs.org/examples/timesheet/output/TimeSheet.html I get this error dialogue message when visiting the above page: TimeSheet undefined list assignment index out

Re: can python make web applications?

2009-09-18 Thread lkcl
On Sep 16, 7:02 pm, Paul Boddie p...@boddie.org.uk wrote: On 16 Sep, 18:31, lkcl luke.leigh...@googlemail.com wrote: http://pyjs.org/examples/timesheet/output/TimeSheet.html I get this error dialogue message when visiting the above page: TimeSheet undefined list assignment index out

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-20 Thread lkcl
On Sep 19, 8:36 pm, Daniel Fetchinson fetchin...@googlemail.com wrote: the pyjamas project is taking a slightly different approach to achieve this same goal: beat the stuffing out of the pyjamas compiler, rather than hand-write such large sections of code in pure javascript, and double-run

Re: pyjamas pyv8run converts python to javascript, executes under command-line

2009-09-20 Thread lkcl
On Sep 20, 12:05 am, exar...@twistedmatrix.com wrote: Does pyjamas convert any Python program into a JavaScript program with the same behavior? that's one of the sub-goals of the pyjamas project, yes. I don't intend to imply that it doesn't - I haven't been keeping up with pyjamas

Re: recommendation for webapp testing?

2009-09-23 Thread lkcl
On Sep 17, 8:19 am, Simon Brunning si...@brunningonline.net wrote: 2009/9/17 Schif Schaf schifsc...@gmail.com: What's the difference between WebDriver and Selenium? Selenium runs in a browser, and usesJavaScriptto perform all your automated actions. It need a browser running to work.

Re: AJAX Widget Framework

2009-10-12 Thread lkcl
On Oct 1, 6:01 pm, Laszlo Nagy gand...@shopzeus.com wrote: I'm looking for an open source, AJAX based widget/windowing framework. Here is what I need: - end user opens up a browser, points it to a URL, logs in - on the server site, sits my application, creating a new session for each user

Re: some site login problem help plz..

2009-10-12 Thread lkcl
On Oct 5, 8:26 am, Diez B. Roggisch de...@nospam.web.de wrote: james27 wrote: hello.. im new to python. i have some problem with mechanize. before i was used mechanize with no problem. but i couldn't success login with some site. for several days i was looked for solution but failed.

Re: Python 3.0.1 and mingw

2009-06-24 Thread lkcl
On Jun 23, 10:59 pm, smartmobili v.richo...@gmail.com wrote: I wanted to know if you have some patch to compile python 3.x on mingw platform because I found some but doesn't work very well : you should compile a 2.N version. despite efforts and proof that the efforts passed all but about

Re: JavaScript toolkits (was Re: ANN: Porcupine Web Application Server 0.6 is released!)

2009-08-01 Thread lkcl
On Jul 20, 4:00 pm, a...@pythoncraft.com (Aahz) wrote: Out of curiosity, are there anyJavaScripttoolkits or python-to-javascript compilers that generate code that degrades gracefully whenJavaScriptis disabled? http://advogato.org/article/981.html you'll need to do a little bit of work -

Re: JavaScript toolkits (was Re: ANN: Porcupine Web Application Server 0.6 is released!)

2009-08-01 Thread lkcl
On Jul 21, 12:55 pm, Paul Boddie p...@boddie.org.uk wrote: On 20 Jul, 18:00, a...@pythoncraft.com (Aahz) wrote: Out of curiosity, are there anyJavaScripttoolkits that generate code that degrades gracefully whenJavaScriptis disabled? You mean Web toolkits which useJavaScript, I presume. I

Re: Calling functions: Why this complicated ?

2009-08-01 Thread lkcl
On Jul 14, 11:31 pm, Chris Rebert c...@rebertia.com wrote: On Tue, Jul 14, 2009 at 1:40 PM, Mohan Parthasarathysurut...@gmail.com wrote: Hi, I am a newbie. I am reading http://www.network-theory.co.uk/docs/pytut/KeywordArguments.html Defining a function with N arguments and calling them

platform-specific overrides of functions and class methods (expanding on imputils demo code)

2009-08-16 Thread lkcl
i've just had to put something together for pyjamas-desktop which may prove to be useful to other people, so i'm pointing people in its general direction, for archive purposes. the purpose behind the platform override system is to allow implementations of a common API, in python, to share the

Re: platform-specific overrides of functions and class methods (expanding on imputils demo code)

2009-08-17 Thread lkcl
thought that people might like to know: i found also that imputil, the standard python module, was lacking the necessary complexity in being a substitute for the standard __import__ function. the additions required were very simple: # note the addition of level=-1 which is ignored def

pyjsglade: GTK-glade-like UI builder for pyjamas

2010-06-11 Thread lkcl
https://sourceforge.net/projects/pyjsglade/ kees bos, the primary programmer who added all of the incredible python features to the pyjs compiler, such as support for yield, long data type and much more, has just started a project pyjsglade. its purpose is the same as that of GTK glade: allow

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
ported pyjamas, which was a web-only/browser-only UI toolkit, to the desktop. it's a _real_ eye-opener to try to use the failed ports of pyjamas to both pygtk2 and pyqt4, which you can still get at http://github.com/lkcl/pyjamas-desktop - see pyjd-pyqt4 and pyjd-pygtk2 these failed ports give

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 6, 10:49 pm, Kevin Walzer k...@codebykevin.com wrote: - Pythonic - The default GUI (so it replaces Tkinter) - It has the support of the majority of the Python community - Simple and obvious to use for simple things - Comprehensive, for complicated things - Cross-platform -

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 6, 10:55 pm, ant shi...@uklinux.net wrote: On Jun 6, 2:22 pm, ant shi...@uklinux.net wrote: I get the strong feeling that nobody is really happy with the state of Python GUIs. snip... What an interesting set of responses I got! And - even more interesting - how few of them

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 7, 9:25 pm, Arndt Roger Schneider arndt.ro...@addcom.de wrote: Terry Reedy schrieb: Forget postscript! Generate SVG from  a tk canvas or --better-- from tkpath. Jeszra (from me) generates SVG. There is also a SVG export ... orr, you use a modern web browser engine such as XulRunner

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 5:12 am, rantingrick rantingr...@gmail.com wrote: But you know i think it boils down to fear really. He is comfortable in his life and wishes to keep it as cookie cutter as he can. Any outside influence must be quashed before these meddling forces can take hold of him. He is so

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 8:45 am, Lie Ryan lie.1...@gmail.com wrote: On 06/09/10 08:20, Martin P. Hellwig wrote: I do think it is technically possible to have your own window manager in python on x11 but I have no idea if you have equal possibilities on mac Doesn't Mac uses an X server as well? not by

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 11:16 am, ant shi...@uklinux.net wrote: And who are the beginning programmers going to turn into? If we do our stuff right, Python programmers. If not, Java or PHP or Visual Basic programmers. Or website designers. Or worse (is there a worse?). yes - Java programmers who use COM

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 5:16 pm, Ethan Furman et...@stoneleaf.us wrote: Gregory Ewing wrote: Kevin Walzer wrote: PyGUI ... certainly is *not* a lightweight GUI toolkit that could easily be incorporated into the Python core library--it instead has rather complex dependencies on both other GUI toolkits

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
On Jun 9, 5:38 pm, rantingrick rantingr...@gmail.com wrote: Yes we need a leader. Someone who is not afraid of the naysayers. Someone with Guido's vision. When the leader emerges, the people will rally. ... Mahh? Whey'rus ma guuhhn? haww haww :) --

Re: GUIs - A Modest Proposal

2010-06-12 Thread lkcl
That's the reason why it won't happen. Everybody asking for change is not willing to lead the effort. Everybody who would be able and might be willing to lead the change fails to see the need for change. *lol*. i don't know why, but i think that's so hilarious i might make it my .sig. it

Python ctypes / pywin32 [was: GUIs - A Modest Proposal]

2010-06-12 Thread lkcl
On Jun 10, 6:26 pm, Martin v. Loewis mar...@v.loewis.de wrote: or PyGui would need to be implemented in terms of ctypes (which then would prevent its inclusion, because there is a policy that ctypes must not be used in the standard library). Is there? I wasn't aware of that. What's the

WebBrowserProgramming [was: GUIs - A Modest Proposal]

2010-06-12 Thread lkcl
On Jun 10, 6:56 pm, Stephen Hansen me+list/pyt...@ixokai.io wrote: For example: if you want to embed a CSS-capable web-browser into your app? PyQT is actually your best option-- albeit a commercial one if you're not open source.. wx/Python haven't yet finished WebKit integration(*). there

Re: safer ctype? (was GUIs - A modest Proposal)

2010-06-12 Thread lkcl
On Jun 12, 8:11 am, Martin v. Loewis mar...@v.loewis.de wrote: Got me thinking, is it perhaps doable to have a 'safe' ctype that is guaranteed to be in the stdlib? Perhaps crippling it in a sense that it only allows a known set of functions to be called? In some sense, a C module wrapping

  1   2   >