My editor ...

24 views
Skip to first unread message

Stef Mientki

unread,
Aug 19, 2010, 4:12:25 PM8/19/10
to web2py-users
hello,

I made a movie about the most important features of the editor I'm using, you can see it here:

http://mientki.ruhosting.nl/movies/web2py_1.html

If there's enough interest, I'll make the application available under BSD license.
At this moment, only under windows all features are available.

cheers,
Stef

mdipierro

unread,
Aug 19, 2010, 4:24:35 PM8/19/10
to web2py-users
This is impressive. I would like to distribute this with web2py (under
contrib with its own license)
What do you think?
What are the prerequisites? Do you have binaries for windows and mac?

Massimo

Richard Vézina

unread,
Aug 19, 2010, 4:44:56 PM8/19/10
to web...@googlegroups.com
Nice!

2010/8/19 Stef Mientki <stef.m...@gmail.com>

qqsaqq

unread,
Aug 19, 2010, 4:46:57 PM8/19/10
to web2py-users
Awesome.
*drools*

Alexandre Andrade

unread,
Aug 19, 2010, 5:08:19 PM8/19/10
to web...@googlegroups.com
It's really impressive. So cool. it would be nice if it works in linux and over ssh, but is already so good at this point.

+1 to make the application available.





2010/8/19 Stef Mientki <stef.m...@gmail.com>



--
Atenciosamente

--
=========================
Alexandre Andrade
Hipercenter.com

Martin.Mulone

unread,
Aug 19, 2010, 5:33:21 PM8/19/10
to web2py-users
Amazing, Stef. Linux +1.

On Aug 19, 6:08 pm, Alexandre Andrade <alexandrema...@gmail.com>
wrote:
> It's really impressive. So cool. it would be nice if it works in linux and
> over ssh, but is already so good at this point.
>
> +1 to make the application available.
>
> 2010/8/19 Stef Mientki <stef.mien...@gmail.com>

Tom Atkins

unread,
Aug 19, 2010, 5:42:37 PM8/19/10
to web...@googlegroups.com
very impressive! hope you get time to continue to develop and agree with Massimo to release with web2py.

Pai

unread,
Aug 19, 2010, 5:57:35 PM8/19/10
to web2py-users
+1

Stef Mientki

unread,
Aug 19, 2010, 7:04:51 PM8/19/10
to web...@googlegroups.com
On 19-08-2010 22:24, mdipierro wrote:
> This is impressive.
thanks

> I would like to distribute this with web2py (under
> contrib with its own license)
> What do you think?
I feel honored,
so sounds like a good idea to me.
> What are the prerequisites?
AFAIK (I always use a very full blown Python version, and I'm totally not aware of which parts I'm
using),
but the most important things are Python 2.6 and wxPython 2.8.
The wysiwyg html editor is a docked Delphi application, so only suited for windows.
For Mac and Linux this should be replaced by something else, maybe webkit, but that doesn't run
(easy) under windows

> Do you have binaries for windows and mac?
No,
I can only make binaries for windows and even these are not very suitable for distro,
because my builder always include the whole full blown python sources.
As I see there's enough interest, here is my global plan
- fix some bugs
- remove the non-standard libs
- make wysiswyg editor only included in windows
- make some basic doc
- make a windows binary + source distro (due to way my builder works, that's almost the same)
Depending on my spare time, this should take a couple of weeks.

then I need someone to test it (and probably make some changes) under Linux and Mac

then we can distibute it.
I mentioned BSD, because it's the easiest I know,
but any license is good for me, as long as it's free enough.

cheers,
Stef

Stef Mientki

unread,
Aug 19, 2010, 7:08:19 PM8/19/10
to web...@googlegroups.com
On 19-08-2010 23:08, Alexandre Andrade wrote:
> It's really impressive. So cool.
thanks.

> it would be nice if it works in linux
most of it, except the wysiwyg editor should work under linux
> and over ssh,
I don't know if it works over ssh (I've no experience with that),
at this moment it's a desktop application, and I think such a GUI-interface only works (fast enough)
as a desktop application,
but I might be mistaken.

cheers,
Stef

mdipierro

unread,
Aug 19, 2010, 9:22:35 PM8/19/10
to web2py-users
OK but even if this is only available to windows users it will be well
worth inclusion. In this case we would include only binary.

Massimo

dlin

unread,
Aug 19, 2010, 9:24:05 PM8/19/10
to web2py-users
It's so cool.
I often use linux & vim.
But, I think that will let my colleagues happy to work with windows.
And your slide is also very cool (what's tool you use?)

Garrafa Pet 2 Litros

unread,
Aug 19, 2010, 10:00:43 PM8/19/10
to web2py-users
[2]...

On 19 ago, 18:08, Alexandre Andrade <alexandrema...@gmail.com> wrote:
> It's really impressive. So cool. it would be nice if it works in linux and
> over ssh, but is already so good at this point.
>
> +1 to make the application available.
>
> 2010/8/19 Stef Mientki <stef.mien...@gmail.com>

dlin

unread,
Aug 19, 2010, 10:36:45 PM8/19/10
to web2py-users
Instead of using wx, I suggest to try QT, that's will let it portable,
and there is solution for webkit+qt.
That's will let it more portable between windows/linux/mac

Jason Brower

unread,
Aug 20, 2010, 1:46:57 AM8/20/10
to web...@googlegroups.com
SSH can do a graphical connection, so to say, from a server to a client.
It's very nice for stuff like this.
We could try it in wine. :P I use a delphi windows program in linux all
the time.
Sadly, I couldn't see the video in my browsers. Somethings up with it.
I wonder how hard it would be to make a linux version. We should
seriously concider making it cross platform before plopping it into
web2py. And does delphi allow open programs?
Best Regards,
Jason Brower

Jason Brower

unread,
Aug 20, 2010, 1:48:04 AM8/20/10
to web...@googlegroups.com
Aren't massive libraries required to make that happen? For example I
don't have any qt apps.
And on top of that, GTK is better. :P
BR,
Jason

Stef Mientki

unread,
Aug 20, 2010, 3:49:13 AM8/20/10
to web...@googlegroups.com
On 20-08-2010 03:24, dlin wrote:
> It's so cool.
thanks,

> I often use linux & vim.
> But, I think that will let my colleagues happy to work with windows.
> And your slide is also very cool (what's tool you use?)
I used a rather old version of wink:
http://www.debugmode.com/wink/

cheers,
Stef

Stef Mientki

unread,
Aug 20, 2010, 4:02:28 AM8/20/10
to web...@googlegroups.com
On 20-08-2010 07:46, Jason Brower wrote:
> SSH can do a graphical connection, so to say, from a server to a client.
> It's very nice for stuff like this.
> We could try it in wine. :P
From other experiments, I think it'll probably runs flawless in wine.

> I use a delphi windows program in linux all
> the time.
> Sadly, I couldn't see the video in my browsers. Somethings up with it.
well it's a swf-flash movie, maybe you can't view falsh ?

> I wonder how hard it would be to make a linux version. We should
> seriously concider making it cross platform before plopping it into
> web2py.
Yes I agree with that.
I think almost everything (except the wysiwyg editor) will run under Linux and Mac,
but it's difficult / impossible for me to test.

> And does delphi allow open programs?
No, and as I use commercial libs, I'm not even allowed to make a dll,
so I created an exe, which behaves more like a dll than like a exe ;-)

cheers,
Stef

Stef Mientki

unread,
Aug 20, 2010, 4:08:21 AM8/20/10
to web...@googlegroups.com
On 20-08-2010 04:36, dlin wrote:
> Instead of using wx, I suggest to try QT, that's will let it portable,
> and there is solution for webkit+qt.
> That's will let it more portable between windows/linux/mac
AFAIK, webkit is also supported under wxPython, (I'm sure it's for Mac),
and it should also work for Windows and Linux,
but I haven't had the chance to try it out (because I'm anxious to update my well working libraries ;-)

cheers,
Stef

mdipierro

unread,
Aug 20, 2010, 6:20:42 AM8/20/10
to web2py-users

> No, and as I use commercial libs, I'm not even allowed to make a dll,
> so I created an exe, which behaves more like a dll than like a exe ;-)

does the license allows you to make an exe but not a dll? Which
libraries are commercial?

Martin.Mulone

unread,
Aug 20, 2010, 6:54:50 AM8/20/10
to web2py-users
in linux gwibber use http://code.google.com/p/pywebkitgtk/, I think
you are right, there is no good way to support windows/linux/mac. Any
chances that you make the movie, in format movie and upload to
youtube?.

Stef Mientki

unread,
Aug 20, 2010, 9:30:30 AM8/20/10
to web...@googlegroups.com
On 20-08-2010 12:20, mdipierro wrote:
>> No, and as I use commercial libs, I'm not even allowed to make a dll,
>> so I created an exe, which behaves more like a dll than like a exe ;-)
> does the license allows you to make an exe but not a dll?
I'm not sure about a DLL, but I meant an ActiveX component which is explictly excluded.
> Which
> libraries are commercial?
Again I'm not aware which libs I always use, but at least this one is commercial
http://www.trichview.com/

cheers,
Stef

Stef Mientki

unread,
Aug 20, 2010, 9:32:55 AM8/20/10
to web...@googlegroups.com
On 20-08-2010 12:20, mdipierro wrote:
forgot to say,
I just tested the windows demo from
http://wxwebkit.wxcommunity.com/index.php?n=Main.Downloads
and although it might miss some features it looks very good.
A quick try to run it from my Python distro, failed :-(

cheers,
Stef

Stef Mientki

unread,
Aug 20, 2010, 12:59:58 PM8/20/10
to web...@googlegroups.com
On 20-08-2010 12:54, Martin.Mulone wrote:
> in linux gwibber use http://code.google.com/p/pywebkitgtk/, I think
> you are right, there is no good way to support windows/linux/mac.
I think webkit might be a good replacement.

> Any
> chances that you make the movie, in format movie and upload to
> youtube?.
Sorry, I''ve no "youtube converter" and my experineces in the past with movie converters,
with my past adventures with viedo converters, I don't want to start another trial and error session ;-)
cheers,
Stef

Alexandre Andrade

unread,
Aug 20, 2010, 6:42:40 PM8/20/10
to web...@googlegroups.com
>The wysiwyg html editor is a docked Delphi application, so only suited for windows.

Since Delphi is Pascal language, maybe it can reworked as a Lazarus project

http://www.lazarus.freepascal.org/

2010/8/19 Stef Mientki <stef.m...@gmail.com>

Stef Mientki

unread,
Aug 20, 2010, 7:08:30 PM8/20/10
to web...@googlegroups.com
On 21-08-2010 00:42, Alexandre Andrade wrote:
> >The wysiwyg html editor is a docked Delphi application, so only suited for windows.
>
> Since Delphi is Pascal language, maybe it can reworked as a Lazarus project
well that doesn't solve the problem with the RichView license,
ok you could rewrite the RichView library, but I estimate it at 2-3 menyears of work,
besides a Pythonic solution would be much better, so I would say WebKit is the way to go.

But anyway thanks for the suggestion.

cheers,
Stef

mdipierro

unread,
Aug 20, 2010, 7:10:44 PM8/20/10
to web2py-users
Qt includes this http://doc.trolltech.com/3.3/qtextbrowser.html
would it help?

Massimo

Michele Comitini

unread,
Aug 20, 2010, 8:01:25 PM8/20/10
to web...@googlegroups.com

mdipierro

unread,
Aug 20, 2010, 10:31:15 PM8/20/10
to web2py-users
Anyway... some food for thought... the paned windows can be achieved
with jQuery UI plugins. The auto completion features can be provided
by the Amy Editor (which is already in web2py admin but disabled
because not supported by all browsers).

Long term it would be nice to port what Stef has done to the browser.
Investing time to redo it Qt may not be the best course of action if
we could make if fully web based.

Massimo


On Aug 20, 7:01 pm, Michele Comitini <michele.comit...@gmail.com>
wrote:
> pyQt:
>
> http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtextedit....http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwebpage.h...
>
> Also wxPython:http://docs.wxwidgets.org/stable/wx_wxview.html#wxview
>
> they are stable and ported on many platforms
>
> 2010/8/21 mdipierro <mdipie...@cs.depaul.edu>:
>
> > Qt includes thishttp://doc.trolltech.com/3.3/qtextbrowser.html

Jason Brower

unread,
Aug 21, 2010, 12:47:12 AM8/21/10
to web...@googlegroups.com
As much as I agree I don't. I feel there are a lot of features we could
implement in an editor built for Web2Py. I would love to see features
like the following:
When in a method I can press a key and my browser (or the one built in)
would jump to that page.
Debug and stepping tools. (They exist, but they would be weird in a
browser.)
Live session and variable information. (It would be nice to see what
users session information is at any moment without having to print it.
A file browser that devides only the models, views, and controllers in a
nice way.
Graphical representation of links or pages that don't get linked to.
I know some of these features could be implemented browser wise, but it
would be so nice if we could push features forward and let the browser
catch up rather than wait on the browser.
BR,
Jason

Stef Mientki

unread,
Aug 21, 2010, 5:29:16 AM8/21/10
to web...@googlegroups.com
switching from wxPython to QT is not an easy task,
and it's not possible for me,
because I'm not acquainted with QT.
btw QT has a weird license, you have to decide on forehand if your application is commercial or free.

> Also wxPython:
> http://docs.wxwidgets.org/stable/wx_wxview.html#wxview
>
don't know wxview, it's not included in the standard wxPython.
If my guess about who the author is, is right, this will take quit some time to be practical usefull.

thanks anyway for the suggestions.
cheers,
Stef

Stef Mientki

unread,
Aug 21, 2010, 5:34:58 AM8/21/10
to web...@googlegroups.com
On 21-08-2010 04:31, mdipierro wrote:
> Anyway... some food for thought... the paned windows can be achieved
> with jQuery UI plugins. The auto completion features can be provided
> by the Amy Editor (which is already in web2py admin but disabled
> because not supported by all browsers).
>
> Long term it would be nice to port what Stef has done to the browser.
fully agree,
only advantages.

> Investing time to redo it Qt may not be the best course of action if
yes, it would be quit an investment.
To give you an impression of my efforts until now,
the whole code I wrote is just 12 pages large,
so that would be about 12*50 = 600 lines of code,
and the estimated time investment is about 40 - 60 hours, half of it to make changes some small
changes to my libraries

cheers,
Stef

Jason Brower

unread,
Aug 21, 2010, 5:38:29 AM8/21/10
to web...@googlegroups.com

The QT licence can be gpl or lgpl. But it's free rest assured.

Stef Mientki

unread,
Aug 21, 2010, 5:40:05 AM8/21/10
to web...@googlegroups.com
On 21-08-2010 06:47, Jason Brower wrote:
> As much as I agree I don't. I feel there are a lot of features we could
> implement in an editor built for Web2Py. I would love to see features
> like the following:
> When in a method I can press a key and my browser (or the one built in)
> would jump to that page.
did you see the movie,
unless I misunderstand you it's there.

> Debug and stepping tools. (They exist, but they would be weird in a
> browser.)
Good point, did you see the buttons "Bps",
it stands for "Breakpoints".
But I've no idea yet how to make this work ;-)

> Live session and variable information. (It would be nice to see what
> users session information is at any moment without having to print it.
Good point,
no idea to implement that,
but I guess this should be in the browser server part ??

> A file browser that devides only the models, views, and controllers in a
> nice way.
you didn't like the tree division ?

> Graphical representation of links or pages that don't get linked to.
yep, but I guess this can only be done in the server / browser part
or maybe not ?

thanks for your input,
cheers,
Stef

Stef Mientki

unread,
Aug 21, 2010, 8:32:05 AM8/21/10
to web...@googlegroups.com

> Graphical representation of links or pages that don't get linked to.
I tried to test the links (with 2 algorithms, code below) in a generated webpage, but the result I
get are very weird.
Probably one you knows a better way ?

cheers,
Stef


from BeautifulSoup import BeautifulSoup
from urllib import urlopen
from httplib import HTTP
from urlparse import urlparse

def Check_URL_1 ( URL ) :
try:
fh = urlopen ( URL )
return fh.code == 200
except :
return False

def Check_URL_2 ( URL ) :
p = urlparse ( URL )
h = HTTP ( p[1] )
h.putrequest ( 'HEAD', p[2] )
h.endheaders()
if h.getreply()[0] == 200:
return True
else:
return False

def Verify_Links ( URL ) :
Parts = URL.split('/')
Site = '/'.join ( Parts [:3] )
Current = '/'.join ( Parts [:-1] )

fh = urlopen ( URL )
lines = fh.read ()
fh.close()

Soup = BeautifulSoup ( lines )
hrefs = lines = Soup.findAll ( 'a' )

for href in hrefs :
href = href [ 'href' ] #[:-1] ## <== remove "#" to generate all errors

if href.startswith ( '/' ) :
href = Site + href
elif href.startswith ('#' ) :
href = URL + href
elif href.startswith ( 'http' ) :
pass
else :
href = Current + href

try:
fh = urllib.urlopen ( href )
except :
pass
print Check_URL_1 ( href ), Check_URL_2 ( href ), href

URL = 'http://127.0.0.1:8000/welcome/default/index'
fh = Verify_Links ( URL )

mdipierro

unread,
Aug 21, 2010, 8:46:29 AM8/21/10
to web2py-users
what do you find that is strange?

Stef Mientki

unread,
Aug 21, 2010, 9:07:54 AM8/21/10
to web...@googlegroups.com
On 21-08-2010 14:46, mdipierro wrote:

> what do you find that is strange?

This is the result with the last letter removed, so all links should give an error,
but they differ with the 2 methods,
and some of them produce 200, while they are definitely wrong
404 500 http://127.0.0.1:8000/welcome/default/user/logi
404 500 http://127.0.0.1:8000/welcome/default/user/registe
404 500 http://127.0.0.1:8000/welcome/default/user/request_reset_passwor
200 500 http://127.0.0.1:8000/welcome/default
400 500 http://127.0.0.1:8000/welcome/default/inde
200 500 http://127.0.0.1:8000/admin/default/design/welcom
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/controllers/default.p
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/views/default/index.htm
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/views/layout.htm
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/static/base.cs
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/models/db.p
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/models/menu.p
400 500 http://127.0.0.1:8000/welcome/appadmin/inde
200 500 http://127.0.0.1:8000/admin/default/inde
400 400 http://127.0.0.1:8000/examples/default/inde
200 -1 http://web2py.co
400 400 http://web2py.com/boo
400 500 http://127.0.0.1:8000/welcome/default/inde
200 500 http://127.0.0.1:8000/welcome/default
200 500 http://127.0.0.1:8000/admin/default/peek/welcome/controllers/default.p
200 500 http://127.0.0.1:8000/admin/default/peek/welcome/views/default/index.htm
200 -1 http://www.web2py.co

This is the normal result
200 500 http://127.0.0.1:8000/welcome/default/user/login
200 500 http://127.0.0.1:8000/welcome/default/user/register
200 500 http://127.0.0.1:8000/welcome/default/user/request_reset_password
200 500 http://127.0.0.1:8000/welcome/default
200 500 http://127.0.0.1:8000/welcome/default/index
200 500 http://127.0.0.1:8000/admin/default/design/welcome
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/controllers/default.py
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/views/default/index.html
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/views/layout.html
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/static/base.css
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/models/db.py
200 500 http://127.0.0.1:8000/admin/default/edit/welcome/models/menu.py
200 500 http://127.0.0.1:8000/welcome/appadmin/index
200 500 http://127.0.0.1:8000/admin/default/index
200 200 http://127.0.0.1:8000/examples/default/index
200 200 http://web2py.com
200 500 http://web2py.com/book
200 500 http://127.0.0.1:8000/welcome/default/index
400 500 http://127.0.0.1:8000/welcome/default/index#
200 500 http://127.0.0.1:8000/admin/default/peek/welcome/controllers/default.py
200 500 http://127.0.0.1:8000/admin/default/peek/welcome/views/default/index.html
200 200 http://www.web2py.com

So when is a URL valid ?

thanks,
Stef

mdipierro

unread,
Aug 21, 2010, 9:26:27 AM8/21/10
to web2py-users

Stef Mientki

unread,
Aug 21, 2010, 9:53:38 AM8/21/10
to web...@googlegroups.com
On 21-08-2010 15:26, mdipierro wrote:
> why are the urls in the first set truncated?
to create deliberately an error ;-)

cheers,
Stef

Martin.Mulone

unread,
Aug 21, 2010, 9:56:49 AM8/21/10
to web2py-users
I think is making an example, stef want to demostrate that web2py is
returning 200 instead of 400. Is this a bug?

Mengu

unread,
Aug 21, 2010, 9:57:33 AM8/21/10
to web2py-users
Yes, Qt license can be GPL or LGPL. PyQt license can be GPL and there
is a price to pay for commercial apps.

On 21 Ağustos, 12:38, Jason Brower <encomp...@gmail.com> wrote:
> The QT licence can be gpl or lgpl. But it's free rest assured.
>
>
>
> ----- Original message -----
> >   On 21-08-2010 02:01, Michele Comitini wrote:
> > > pyQt:
>
> > >http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qtextedit....
> > >http://www.riverbankcomputing.co.uk/static/Docs/PyQt4/html/qwebpage.h...

mdipierro

unread,
Aug 21, 2010, 10:29:13 AM8/21/10
to web2py-users
There was a problem in trunk that may have caused this. The problem
was with the recent change in URL bahviour. I think I fixed it. Yet I
cannot run your code. I am getting a strange error

fh = urlopen ( URL )
return fh.getcode()
AttributeError: addinfourl instance has no attribute 'getcode'


On Aug 21, 8:07 am, Stef Mientki <stef.mien...@gmail.com> wrote:
>  On 21-08-2010 14:46, mdipierro wrote:
>
> > what do you find that is strange?
>
> This is the result with the last letter removed, so all links should give an error,
> but they differ with the 2 methods,
> and some of them produce 200, while they are definitely wrong
> 200 -1http://www.web2py.co
>
> This is the normal result
> 200 200http://www.web2py.com

Stef Mientki

unread,
Aug 21, 2010, 11:35:34 AM8/21/10
to web...@googlegroups.com
On 21-08-2010 16:29, mdipierro wrote:
> There was a problem in trunk that may have caused this. The problem
> was with the recent change in URL bahviour. I think I fixed it. Yet I
> cannot run your code. I am getting a strange error
>
> fh = urlopen ( URL )
> return fh.getcode()
> AttributeError: addinfourl instance has no attribute 'getcode'
sorry that's absolutely above my knowledge.
Maybe a different urllib ?
I hope someone else has an idea.

btw, I read in the documentation that's better to use urllib2 instead of urllib (don't ask me why ;-)


cheers,
Stef

phipsico

unread,
Aug 21, 2010, 1:37:09 PM8/21/10
to web2py-users
PySide is Python for QT . is LGPL.
Any of the three (QT -pyside-; GTK -pygtk-; WxWidget -wxPython-) is a
good choice. the most important thing is that you feel comfortable.
I think it is important to remove dependencies from Delphis.
And make sure it's multiplatform.

Johan

unread,
Aug 24, 2010, 1:05:34 AM8/24/10
to web2py-users
Is it possible to post a free version of this _as it is_ ?
Some of us my find it very useful.
Or even, a version without the wysiwyg, if that's the problem.

Stef Mientki

unread,
Aug 24, 2010, 7:39:54 AM8/24/10
to web...@googlegroups.com
I'll do my best and will try to make a first alfa release by the end of the week.

cheers,
Stef

Skiros

unread,
Aug 26, 2010, 9:09:59 AM8/26/10
to web2py-users
GREAT Job Stef !!!

and don´t worry, do it at your own time, is no need to hurry.
Reply all
Reply to author
Forward
0 new messages