[web2py] Re: web2py 2.0.2 is out

2012-08-30 Thread jotbe
Congratulations to Massimo and all contributors! Great job! :)

Jan

Am Donnerstag, 30. August 2012 05:41:34 UTC+2 schrieb Massimo Di Pierro:
>
> After 5 months. It is done. This is the most waited and the most 
> feature-packed release.
>
> I am sure we'll find some corners that need to be ironed but it is 
> considerably better than 1.99.7. It adds lot of new features and improves 
> many existing ones:
>
> - 57,000 new lines of code and closed 279 issues since 1.99.7.
> - Retrieving data from DB should be faster, in particular 
> select(cacheable=True)
> - Has a new scheduler, a built-in wiki, new language and pluralization 
> system, better markmin with oembed support and better scaffolding app, 
> increased security.
> - Lots of experimental features including GIS support, mongodb support, 
> built-in auth.wiki(), and more.
>
> Should be 100% backward compatible. If you run into any issue let us know 
> ASAP.
>
> I personally want to thank the major contributors to this release (in 
> alphabetic order)
> Alan, Andrew, Anthony, Bruno, Christian, Dave, Dominic, Iceberg, Jonathan, 
> Marc, Mariano, Marin, Martin, Mark, Michael, Michele, Niphlod, Patrick, 
> Vladyslav, 
> They spend many nights testing, coding, debugging at a very fast pace.
>
> Many many people have contributed.
>
> If your contribution has not been properly acknowledged please let us know 
> ASAP. It is probably an oversight.
>
>
> Massimo
>
>
> Detailed changelog
> ===
>
> ## 2.00.2
>
> ### DAL Improvements
>
> - Support for DAL(lazy_tables=True) and db.define_table(on_define=lambda 
> table:), thanks Jonathan
> - db(...).select(cacheable=True) make select 30% faster
> - db(...).select(cache=(cache.ram,3600)) now caches parsed data 100x faster
> - db(...).count(cache=(cache.ram,3600)) now supported
> - MongoDB support in DAL (experimental), thanks Mark Breedveld
> - geodal and spatialite, thanks Denes and Fran (experimental)
> - db.mytable._before_insert, _after_insert, _before_update, _after_update, 
> _before_delete. _after_delete (list of callbacks)
> - db(...).update_naive(...) same as update but ignores 
> table._before_update and table._after_update
> - DAL BIGINT support and DAL(...,bigint_id=True)
> - IS_IN_DB(..., distinct=True)
> - new syntax: db.mytable.insert(myuploadfield=open()), thank you 
> Iceberg
> - db(...).select(db.mytable.myfield.count(distinct=True))
> - db(db.a)._update(name=db(db.b.a==db.a.id).nested_select(db.b.id))
> - db.mytable.myfield.filter_in, filter_out
> - db.mytable._enable_record_versioning(db) adds versioning to this table
> - teradata adapter, thanks Andrew Willimott
> - experimental Sybase Adapter
> - added db.table.field.avg()
> - Support for Google App Engine projections, thanks Christian
> - Field(... 'upload', default=path) now accepts a path to a local file as 
> default value, if user does not upload a file. Relative path looks inside 
> current application folder, thanks Marin
> - executesql(...,fields=,columns=) allows parsing of results in Rows, 
> thanks Anthony
>
> ### Auth improvements
>
> - auth.enable_record_versioning(db)  adds full versioning to all tables
> - @auth.requires_login(otherwise=URL(...))
> - auth supports salt and compatible with third party data, thanks Dave 
> Stoll
> - CRYPT now defaults to pbkdf2(1000,20,sha1)
> - Built-in wiki with menu, tags, search, media, permissions. def index: 
> return auth.wiki()
> - auth.settings.everybody_group_id
> - allow storage of uploads on any PyFileSystem (including amazon)
>
> ### Form improvements
>
> - FORM.confirm('Are you sure?',{'Back':URL(...)})
> - SQLFORM.smartdictform(dict)
> - form.add_button(value,link)
> - SQLFORM.grid(groupby='...')
> - fixed security issue with SQLFORM.grid and SQLFORM.smartgrid
> - more export options in SQLFORM.grid and SQLFORM.smartgrid (html, xml, 
> csv, ...)
>
> ### Admin improvements
>
> - new admin pages: manage_students, bulk_regsiter, and progress reports
> - increased security in admin against CSRF
> - experimental Git integration
> - experimental OpenShift deployment
> - multi-language pluralization engine 
> - ace text web editor in admin
> - Ukrainian translations, thanks Vladyslav Kozlovskyy
> - Romanian translation for welcome, thanks ionel
> - support for mercurial 2.6, thanks Vlad
>
> ### Scheduler Improvements (thanks to niphlod, ykessler, dhx, toomim)
>
> - web2py.py -K myapp -X starts the myapp scheduler alongside the webserver
> - tasks are marked EXPIRED (if stop_time passed)
> - functions with no result don't end up in scheduler_run
> - more options: web2py.py -E -b -L
> - scheduler can now handle 10k tasks with 20 concurrent workers and with 
> no issues
> - new params:
> tasks can be found in the environment (no need to define the tasks 
> parameter)
> max_empty_runs kills the workers automatically if no new tasks are 
> found in queue (nice for "spikes" of processing power)
> discard_results to completely discard the results (if you don't need 
>

[web2py] Issues with TAG() encoding and XML().flatten()

2011-09-11 Thread jotbe
Hi List,

I just started my first Web2Py sample project (the Wiki from the book)
and got it even managed to integrate the HTML5 editor Aloha:
http://aloha-editor.org/

My pages should use Markmin instead of HTML and therefore I am
converting the HTML to Markmin using TAG().flatten() and
markmin_serializer. In general it is working and the content is stored
as Markmin code, but when using eg. German umlauts like 'öä', TAG()
seems to get confused and doesn't handle the encoding properly.

On the other hand, when trying to use
XML().flatten(render=markmin_serializer) instead of
TAG().flatten(render=markmin_serializer), nothing changes at all.
XML().flatten(render=markmin_serializer) will return the input HTML
string as is, instead of converting it to Markmin.

I am trying to solve this issue for two days now and read lots of
posts regarding handling of UTF-8 in Python, tried lots of third party
modules to workaround this issue, but had no luck so far. I really
appreciate your help/tips. :)

Various sample code using the Web2Py Shell: 
https://gist.github.com/caec7bd5b41624d50b01

Thanks in advance!


[web2py] Re: Issues with TAG() encoding and XML().flatten()

2011-09-13 Thread jotbe
Thanks again, but my issue deals with interpreting a html string that
should be flatten to Markmin, so I have to pass the string like
'öäß'. The encoding is messed up afterwards:

>>> print TAG(u'öäß'.encode('utf8'))
öäÃ
>>> print TAG['h1'](u'öäß'.encode('utf8')).xml()
öäß
>>> print TAG['h1'](u'öäß'.encode('utf8')).flatten(render=markmin_serializer)
# öäß


>>> print TAG(u'öäß'.encode('utf8')).flatten(render=markmin_serializer)
# öäÃ

Maybe I could workaround this issue, if I know how to separate the
semantics from my string 'öäß', so I can use it like TAG['h1']
(u'öäß'...)

Jan

On 13 Sep., 20:47, Massimo Di Pierro 
wrote:
> AG['h1'](u'öäß'.encode('utf8')).xml()
>
> On Sep 13, 11:13 am, "jot.be"  wrote:
>
>
>
>
>
>
>
> > I searched the ML and found a thread that mentions a similar issue with
> > TAG() and Unicode:
>
> >http://groups.google.com/group/web2py/browse_thread/thread/a716d6d77b...
>
> > I cannot reproduce the described issues with TAG[tagname](input), but I
> > still have the problem with passing a Unicode string to TAG(input):
>
> > >>> TAG['h1'](u'öäß').xml()
>
> > '\xc3\xb6\xc3\xa4\xc3\x9f'>>> print TAG['h1'](u'öäß').xml()
> > öäß
> > >>> print TAG[u'hö'](u'<öäß').xml()
>
> > <öäß>>> print TAG(u'öäß').xml()
>
> > Traceback (most recent call last):
> >   File "", line 1, in 
> >   File "/Users/jan/hg/web2py/gluon/html.py", line 1054, in __call__
> >     return web2pyHTMLParser(decoder.decoder(html)).tree
> >   File "/Users/jan/hg/web2py/gluon/decoder.py", line 74, in decoder
> >     return buffer.decode(encoding).encode('utf8')
> >   File
> > "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ 
> > encodings/utf_8.py",
> > line 16, in decode
> >     return codecs.utf_8_decode(input, errors, True)
> > UnicodeEncodeError: 'ascii' codec can't encode characters in position 4-6:
> > ordinal not in range(128)
>
> > Really strange. Hints are still welcome. ;)
>
> > Jan
>
> > On Mon, Sep 12, 2011 at 10:17 AM, jot.be  wrote:
> > > Hi Massimo,
>
> > > thanks for your answer!
>
> > > On Mon, Sep 12, 2011 at 2:19 AM, Massimo Di Pierro <
> > > massimo.dipie...@gmail.com> wrote:
>
> > >> Are you sure your input is UTF8? The web2py markmin_serializer is in
> > >> gluon/html.py and it is relatively straightforward. Nothing can really
> > >> go bad there. I suspect your input has not been parsed at all into the
> > >> web2py object representation.
>
> > > Not sure - I am quite new to Python and am not so skilled in dealing with
> > > Unicode issues.
>
> > > I just appended my last approaches:
> > >https://gist.github.com/caec7bd5b41624d50b01#gistcomment-50227
>
> > > For my understanding it is not the input that TAG(input) expects. When
> > > using classic html entities ("ä") it works.
>
> > > Any hint what I could try next? :)
>
> > >> the parsing is done by TAG(input) (not by XML(input)) and it is based
> > >> on the python built-in XML parser which chokes on non-utf8 chars. It
> > >> may not be parsting the XML at all and returning the XML as a single
> > >> string.
>
> > > OK, this is clear.
>
> > > Jan
>
> > >> Massimo
>
> > >> On Sep 11, 2:01 pm, jotbe  wrote:
> > >> > Hi List,
>
> > >> > I just started my first Web2Py sample project (the Wiki from the book)
> > >> > and got it even managed to integrate the HTML5 editor Aloha:
> > >>http://aloha-editor.org/
>
> > >> > My pages should use Markmin instead of HTML and therefore I am
> > >> > converting the HTML to Markmin using TAG().flatten() and
> > >> > markmin_serializer. In general it is working and the content is stored
> > >> > as Markmin code, but when using eg. German umlauts like 'öä', TAG()
> > >> > seems to get confused and doesn't handle the encoding properly.
>
> > >> > On the other hand, when trying to use
> > >> > XML().flatten(render=markmin_serializer) instead of
> > >> > TAG().flatten(render=markmin_serializer), nothing changes at all.
> > >> > XML().flatten(render=markmin_serializer) will return the input HTML
> > >> > string as is, instead of converting it to Markmin.
>
> > >> > I am trying to solve this issue for two days now and read lots of
> > >> > posts regarding handling of UTF-8 in Python, tried lots of third party
> > >> > modules to workaround this issue, but had no luck so far. I really
> > >> > appreciate your help/tips. :)
>
> > >> > Various sample code using the Web2Py Shell:
> > >>https://gist.github.com/caec7bd5b41624d50b01
>
> > >> > Thanks in advance!


[web2py] Re: Problem with private mode of fluxflex

2011-10-01 Thread jotbe
I got a similar issue just right now and contacted the fluxflex
service. Was your problem resolved meanwhile?

Regards,
Jan

On 14 Sep., 07:20, Martin Weissenboeck  wrote:
> Hi,
>
> has somebody tried the private mode of fluxflex? I have done it two times
> with crazy results:
>
> Some days ago I have switched a very small test-project  to private mode and
> I have got:
>
> Your project is in private now.
> You can still check your project from your temporary private URL 
> below.http://xxx.fluxflex.com/
>  I have tried this address. After some time I read:
>
> This website is under maintenance now.
>
> Now I have checked the quota status again and again. The "Processed Time:"
> rised very quickly and it ended with 22%
>
> Next step: switch back to "Public Mode".
> The new answer ist: "This project has reached the quota limit"
>
> After 10 minutes playing with fluxflex this is my processed time:
> Processed Time   446946.442 / 18000.0 seconds (5.0 Hours)5 days of CPU-time
> during 10 minutes Looks like an endless loop!
>
> More than one week ago I have written about this problem to
> supp...@fluxflex.com. They wanted to know details about my project, but
> nothing else happened. Today I have tried the private mode again with
> another project. Some result.
>
> Regards, Martin


[web2py] Re: Making slides with web2py and markmin

2011-10-11 Thread jotbe
Thanks for the module, Massimo!

Unfortunately, it is not working in a test app:

## snip ##
$ python web2py.py -P -M -S slides
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.3 (2011-09-26 10:32:57) dev
Database drivers available: SQLite3, pymysql
Python 2.7.2 (default, Jul 27 2011, 15:07:16)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> from applications.slides.modules.slide import SLIDE
>>> content = """
... # My slides title
... ## Slide One
... this allows you to create slides using markmin
... ## Slide Two
... - you can use lists
... - you can use [[links http://www.google.com]]
... - you can use images [[image http://image.example.com center]]
... """
>>> SLIDE(content, title='Sample slide')
Traceback (most recent call last):
  File "", line 1, in 
  File "applications/slides/modules/slide.py", line 46, in SLIDE
html = str(MARKMIN(body,extra=extra))
NameError: global name 'MARKMIN' is not defined
>>> print MARKMIN(content)
My slides titleSlide Onethis allows you to create
slides using markminSlide Twoyou can use listsyou can use http://image.example.com"; alt="links http://www.google.com";>http://www.google.com]]you
can use images [[image" align="center" />
## snap ##

What am I doing wrong? :)

Greetings,

Jan

On 10 Sep., 21:24, Massimo Di Pierro  wrote:
> Based on desk.js now you can do this
>
> Put the attached slide.py under models (any app).
>
> Write a controller like
>
> def  test():    
>     content = """
> # My slides title
> ## Slide One
> this allows you to create slides using markmin
> ## Slide Two
> - you can use lists
> - you can use [[linkshttp://www.google.com]]
> - you can use images [[imagehttp://image.example.comcenter]]
> """
>    return SLIDE(content,title="My slides")
>
> Notice the resulting file is pure html5 with external links therefore it can 
> be downloaded as an independent document.
>
>  slide.py
> 2KAnzeigenHerunterladen


[web2py] Re: Making slides with web2py and markmin

2011-10-12 Thread jotbe
Thanks a lot, Bruno! I didn't read carefully enough, sorry for that.
The slides model is working in general now, but I am getting the same
render bug like some posts before regarding the links. Will reply to
the corresponding post.

Jan

On 12 Okt., 00:01, Bruno Rocha  wrote:
> you are putting it in modules while it has to be in models.
>
> if you want it in modules you will need to explicitely import all web2py
> helpers and context.
>
> from gluon import *
>
> http://zerp.ly/rochacbruno
> Em 11/10/2011 16:28, "jotbe"  escreveu:
>
>
>
>
>
>
>
> > Thanks for the module, Massimo!
>
> > Unfortunately, it is not working in a test app:
>
> > ## snip ##
> > $ python web2py.py -P -M -S slides
> > web2py Web Framework
> > Created by Massimo Di Pierro, Copyright 2007-2011
> > Version 1.99.3 (2011-09-26 10:32:57) dev
> > Database drivers available: SQLite3, pymysql
> > Python 2.7.2 (default, Jul 27 2011, 15:07:16)
> > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> > (InteractiveConsole)
> > >>> from applications.slides.modules.slide import SLIDE
> > >>> content = """
> > ... # My slides title
> > ... ## Slide One
> > ... this allows you to create slides using markmin
> > ... ## Slide Two
> > ... - you can use lists
> > ... - you can use [[linkshttp://www.google.com]]
> > ... - you can use images [[imagehttp://image.example.comcenter]]
> > ... """
> > >>> SLIDE(content, title='Sample slide')
> > Traceback (most recent call last):
> >  File "", line 1, in 
> >  File "applications/slides/modules/slide.py", line 46, in SLIDE
> >    html = str(MARKMIN(body,extra=extra))
> > NameError: global name 'MARKMIN' is not defined
> > >>> print MARKMIN(content)
> > My slides titleSlide Onethis allows you to create
> > slides using markminSlide Twoyou can use lists > li>you can use http://image.example.com"; alt="links  > href="http://www.google.com";>http://www.google.com]]you
> > can use images [[image" align="center" />
> > ## snap ##
>
> > What am I doing wrong? :)
>
> > Greetings,
>
> > Jan
>
> > On 10 Sep., 21:24, Massimo Di Pierro  wrote:
> > > Based on desk.js now you can do this
>
> > > Put the attached slide.py under models (any app).
>
> > > Write a controller like
>
> > > def  test():
> > >     content = """
> > > # My slides title
> > > ## Slide One
> > > this allows you to create slides using markmin
> > > ## Slide Two
> > > - you can use lists
> > > - you can use [[linkshttp://www.google.com]]
> > > - you can use images [[imagehttp://image.example.comcenter]]
> > > """
> > >    return SLIDE(content,title="My slides")
>
> > > Notice the resulting file is pure html5 with external links therefore it
> > can be downloaded as an independent document.
>
> > >  slide.py
> > > 2KAnzeigenHerunterladen


[web2py] Re: Making slides with web2py and markmin

2011-10-12 Thread jotbe
Your example code seems to trigger a bug in MARKMIN, when using the
link and the image tag in a list:

## snip ##
>>> content = """... # My slides title... ## Slide One... this allows you to 
>>> create slides using markmin... ## Slide Two... - you can use lists... - you 
>>> can use [[links http://www.google.com]]... - you can use images [[image 
>>> http://image.example.com center]]... """>>> print MARKMIN(content)My 
>>> slides titleSlide Onethis allows you to create slides 
>>> using markminSlide Twoyou can use listsyou 
>>> can use http://image.example.com"; alt="links >> href="http://www.google.com";>http://www.google.com]]you can 
>>> use images [[image" align="center" />

## snap ##

The generated html link including the link scope "links" is inserted
into the alt attribute.

It works when separating the image from the list:

## snip ##
>>> content = """
... # My slides title
... ## Slide One
... this allows you to create slides using markmin
... ## Slide Two
... - you can use lists
... - you can use [[links http://www.google.com]]
... you can use images [[image http://image.example.com center]]
... """
>>> print MARKMIN(content)
My slides titleSlide Onethis allows you to create
slides using markminSlide Twoyou can use listsyou can use http://www.google.com";>links
you can use images http://image.example.com"; alt="image"
align="center" />
## snap ##

Regards,

Jan



On 11 Okt., 16:17, Massimo Di Pierro 
wrote:
> I do not understand the bug. Can you provide an example?
>
> On Oct 11, 5:28 am, peter  wrote:
>
>
>
>
>
>
>
> > Using windows, and web2py version 1.99.2, if I setup a simple
> > applicatioin, add slides.py and the test as per your instructions:
>
> > Things only half work. The link does not work, it says
>
> > "you can use
>
> >http://www.google.com]]
> > "
>
> > "you can use images [[image" align="center" />
> > "
>
> > If one tries emboldening words, they do no appear emboldened.
>
> > This is a nice little addition to web2py, but it appears there is a
> > bug.
>
> > Thanks again for all you work Massimo.
>
> > Peter
>
> > On Sep 13, 6:31 am, Andrew  wrote:
>
> > > Whilst on the subject of [[ image tags in markmin,  how do I reference
> > > a local image ?  Can I use the URL function ?
>
> > > On Sep 13, 4:11 pm, guruyaya  wrote:
>
> > > > Well, oddly it works the other way for me. I'll look into it later
> > > > today.
>
> > > > On Sep 12, 3:20 am, Massimo Di Pierro 
> > > > wrote:
>
> > > > > markmin requires [[...]] not [...]
>
> > > > > On Sep 11, 2:29 pm, guruyaya  wrote:
>
> > > > > > Ummm, why are you using [[ for links and images instead of just one
> > > > > > [ ? It doesn't work for me, when I user the [[ syntax.
>
> > > > > > On Sep 11, 1:36 am, Massimo Di Pierro 
> > > > > > wrote:
>
> > > > > > > No. It makes the view. You just return it.
>
> > > > > > > On Sep 10, 3:53 pm, António Ramos  wrote:
>
> > > > > > > > Humm, dont i need a view?
>
> > > > > > > > Em 10 de setembro de 2011 21:52, António Ramos 
> > > > > > > > escreveu:
>
> > > > > > > > > Working now :)
>
> > > > > > > > > Em 10 de setembro de 2011 21:29, António Ramos 
> > > > > > > > > escreveu:
>
> > > > > > > > > Traceback (most recent call last):
> > > > > > > > >> File "gluon/restricted.py", line 191, in restricted
> > > > > > > > >> File "gluon/restricted.py", line 178, in compile2
> > > > > > > > >> TypeError: compile() expected string without null bytes
>
> > > > > > > > >> :(
>
> > > > > > > > >> Just a screenshot please
>
> > > > > > > > >> 2011/9/10 Michele Comitini 
>
> > > > > > > > >>> +1
>
> > > > > > > > >>> Terrific!
>
> > > > > > > > >>> mic
> > > > > > > > >>> Il giorno 10/set/2011 21:24, "Massimo Di Pierro" <
> > > > > > > > >>> mdipie...@cs.depaul.edu> ha scritto:
>
> > > > > > > > >>> > Based on desk.js now you can do this
>
> > > > > > > > >>> > Put the attached slide.py under models (any app).
>
> > > > > > > > >>> > Write a controller like
>
> > > > > > > > >>> > def test():
> > > > > > > > >>> > content = """
> > > > > > > > >>> > # My slides title
> > > > > > > > >>> > ## Slide One
> > > > > > > > >>> > this allows you to create slides using markmin
> > > > > > > > >>> > ## Slide Two
> > > > > > > > >>> > - you can use lists
> > > > > > > > >>> > - you can use [[linkshttp://www.google.com]]
> > > > > > > > >>> > - you can use images 
> > > > > > > > >>> > [[imagehttp://image.example.comcenter]]
> > > > > > > > >>> > """
> > > > > > > > >>> > return SLIDE(content,title="My slides")
>
> > > > > > > > >>> > Notice the resulting file is pure html5 with external 
> > > > > > > > >>> > links therefore
> > > > > > > > >>> it can be downloaded as an independent document.


[web2py] Re: Making slides with web2py and markmin

2011-10-12 Thread jotbe
Still not working:

### HG rev:

$ LC_ALL=C; hg summary
parent: 2503:0f3a2bc13026 tip
 fixed problem with missing identity in auth
branch: default
commit: 2 modified, 1 deleted, 5 unknown
update: (current)

### Py-CLI:

$ python web2py.py -P -M -S slides
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2011
Version 1.99.3 (2011-10-11 09:05:14) dev
Database drivers available: SQLite3, pymysql
Python 2.7.2 (default, Jul 27 2011, 15:07:16)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> content = """
... # My slides title
... ## Slide One
... this allows you to create slides using markmin
... ## Slide Two
... - you can use lists
... - you can use [[links http://www.google.com]]
... - you can use images [[image http://image.example.com center]]
... """
>>> print MARKMIN(content)
My slides titleSlide Onethis allows you to create
slides using markminSlide Twoyou can use listsyou can use http://www.google.com";>http://
www.google.com]]you can use images [[image" />

Regards,
Jan

On 12 Okt., 15:29, Massimo Di Pierro 
wrote:
> Can you try the latest markmin (from trunk)?
>
> On Oct 12, 2:37 am, jotbe  wrote:
>
>
>
>
>
>
>
> > Your example code seems to trigger a bug in MARKMIN, when using the
> > link and the image tag in a list:
>
> > ## snip ##
>
> > >>> content = """... # My slides title... ## Slide One... this allows you 
> > >>> to create slides using markmin... ## Slide Two... - you can use 
> > >>> lists... - you can use [[linkshttp://www.google.com]]... - you can use 
> > >>> images [[imagehttp://image.example.comcenter]]... """>>> print 
> > >>> MARKMIN(content)My slides titleSlide Onethis 
> > >>> allows you to create slides using markminSlide 
> > >>> Twoyou can use listsyou can use  > >>> src="http://image.example.com"; alt="links  > >>> href="http://www.google.com";>http://www.google.com]]you 
> > >>> can use images [[image" align="center" />
>
> > ## snap ##
>
> > The generated html link including the link scope "links" is inserted
> > into the alt attribute.
>
> > It works when separating the image from the list:
>
> > ## snip ##>>> content = """
>
> > ... # My slides title
> > ... ## Slide One
> > ... this allows you to create slides using markmin
> > ... ## Slide Two
> > ... - you can use lists
> > ... - you can use [[linkshttp://www.google.com]]
> > ... you can use images [[imagehttp://image.example.comcenter]]
> > ... """>>> print MARKMIN(content)
>
> > My slides titleSlide Onethis allows you to create
> > slides using markminSlide Twoyou can use lists > li>you can use http://www.google.com";>links
> > you can use images http://image.example.com"; alt="image"
> > align="center" />
> > ## snap ##
>
> > Regards,
>
> > Jan
>
> > On 11 Okt., 16:17, Massimo Di Pierro 
> > wrote:
>
> > > I do not understand the bug. Can you provide an example?
>
> > > On Oct 11, 5:28 am, peter  wrote:
>
> > > > Using windows, and web2py version 1.99.2, if I setup a simple
> > > > applicatioin, add slides.py and the test as per your instructions:
>
> > > > Things only half work. The link does not work, it says
>
> > > > "you can use
>
> > > >http://www.google.com]]
> > > > "
>
> > > > "you can use images [[image" align="center" />
> > > > "
>
> > > > If one tries emboldening words, they do no appear emboldened.
>
> > > > This is a nice little addition to web2py, but it appears there is a
> > > > bug.
>
> > > > Thanks again for all you work Massimo.
>
> > > > Peter
>
> > > > On Sep 13, 6:31 am, Andrew  wrote:
>
> > > > > Whilst on the subject of [[ image tags in markmin,  how do I reference
> > > > > a local image ?  Can I use the URL function ?
>
> > > > > On Sep 13, 4:11 pm, guruyaya  wrote:
>
> > > > > > Well, oddly it works the other way for me. I'll look into it later
> > > > > > today.
>
> > > > > > On Sep 12, 3:20 am, Massimo Di Pierro 
> > > > > > wrote:
>
> > >

[web2py] Re: Making slides with web2py and markmin

2011-10-12 Thread jotbe
I am not using Jython. Please see the version information in my prev.
reply. Strange issue.

Should I send you my markmin2html.py for comparison?


On 12 Okt., 16:16, Massimo Di Pierro 
wrote:
> I cannot reproduce it. I get:
>
> Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>
> >>> print MARKMIN(content)
>
> ... # My slides title
> ... ## Slide One
> ... this allows you to create slides using markmin
> ... ## Slide Two
> ... - you can use lists
> ... - you can use http://www.google.com";>links
> ... - you can use images 
> ...
>
>
>
> Which incorrect because of the  inside a  but otherwise correct.
> Are you using jython?
>
> On Oct 12, 9:07 am, jotbe  wrote:
>
>
>
>
>
>
>
> > Still not working:
>
> > ### HG rev:
>
> > $ LC_ALL=C; hg summary
> > parent: 2503:0f3a2bc13026 tip
> >  fixed problem with missing identity in auth
> > branch: default
> > commit: 2 modified, 1 deleted, 5 unknown
> > update: (current)
>
> > ### Py-CLI:
>
> > $ python web2py.py -P -M -S slides
> > web2py Web Framework
> > Created by Massimo Di Pierro, Copyright 2007-2011
> > Version 1.99.3 (2011-10-11 09:05:14) dev
> > Database drivers available: SQLite3, pymysql
> > Python 2.7.2 (default, Jul 27 2011, 15:07:16)
> > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> > Type "help", "copyright", "credits" or "license" for more information.
> > (InteractiveConsole)>>> content = """
>
> > ... # My slides title
> > ... ## Slide One
> > ... this allows you to create slides using markmin
> > ... ## Slide Two
> > ... - you can use lists
> > ... - you can use [[linkshttp://www.google.com]]
> > ... - you can use images [[imagehttp://image.example.comcenter]]
> > ... """>>> print MARKMIN(content)
>
> > My slides titleSlide Onethis allows you to create
> > slides using markminSlide Twoyou can use lists > li>you can use http://www.google.com";>http://www.google.com]]you can 
> > use images [[image" /> > ul>
>
> > Regards,
> > Jan
>
> > On 12 Okt., 15:29, Massimo Di Pierro 
> > wrote:
>
> > > Can you try the latest markmin (from trunk)?
>
> > > On Oct 12, 2:37 am, jotbe  wrote:
>
> > > > Your example code seems to trigger a bug in MARKMIN, when using the
> > > > link and the image tag in a list:
>
> > > > ## snip ##
>
> > > > >>> content = """... # My slides title... ## Slide One... this allows 
> > > > >>> you to create slides using markmin... ## Slide Two... - you can use 
> > > > >>> lists... - you can use [[linkshttp://www.google.com]]... - you can 
> > > > >>> use images [[imagehttp://image.example.comcenter]]... """>>> print 
> > > > >>> MARKMIN(content)My slides titleSlide Onethis 
> > > > >>> allows you to create slides using markminSlide 
> > > > >>> Twoyou can use listsyou can use  > > > >>> src="http://image.example.com"; alt="links  > > > >>> href="http://www.google.com";>http://www.google.com]]you
> > > > >>>  can use images [[image" align="center" />
>
> > > > ## snap ##
>
> > > > The generated html link including the link scope "links" is inserted
> > > > into the alt attribute.
>
> > > > It works when separating the image from the list:
>
> > > > ## snip ##>>> content = """
>
> > > > ... # My slides title
> > > > ... ## Slide One
> > > > ... this allows you to create slides using markmin
> > > > ... ## Slide Two
> > > > ... - you can use lists
> > > > ... - you can use [[linkshttp://www.google.com]]
> > > > ... you can use images [[imagehttp://image.example.comcenter]]
> > > > ... """>>> print MARKMIN(content)
>
> > > > My slides titleSlide Onethis allows you to create
> > > > slides using markminSlide Twoyou can use lists > > > li>you can use http://www.google.com";>links
> > > > you can use images http://image.example.com"; alt="image"
> > > > align="center" />
> > > > ## snap ##
>
> > > > Regards,
>

[web2py] Re: Making slides with web2py and markmin

2011-10-12 Thread jotbe
http://code.google.com/p/web2py/issues/detail?id=469

Just ask when I should test it.

Regards,
Jan

On 12 Okt., 19:06, Massimo Di Pierro 
wrote:
> I think I found the bug. Please open a ticket so I do not forget. I
> can fix this tonight.
>
> On Oct 12, 10:46 am, "jot.be"  wrote:
>
>
>
>
>
>
>
> > markmin2html attached.
>
> > Sample code/CLI-snippet (same as 
> > below):https://gist.github.com/90231ab4713fb2e6588b
>
> > On Wed, Oct 12, 2011 at 5:14 PM, Massimo Di Pierro <
>
> > massimo.dipie...@gmail.com> wrote:
> > > Yes, the markimin and the sample code.
>
> > > On Oct 12, 10:03 am, jotbe  wrote:
> > > > I am not using Jython. Please see the version information in my prev.
> > > > reply. Strange issue.
>
> > > > Should I send you my markmin2html.py for comparison?
>
> > > > On 12 Okt., 16:16, Massimo Di Pierro 
> > > > wrote:
>
> > > > > I cannot reproduce it. I get:
>
> > > > > Python 2.7.2 (v2.7.2:8527427914a2, Jun 11 2011, 15:22:34)
> > > > > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
>
> > > > > >>> print MARKMIN(content)
>
> > > > > ... # My slides title
> > > > > ... ## Slide One
> > > > > ... this allows you to create slides using markmin
> > > > > ... ## Slide Two
> > > > > ... - you can use lists
> > > > > ... - you can use http://www.google.com";>links
> > > > > ... - you can use images 
> > > > > ...
>
> > > > > Which incorrect because of the  inside a  but otherwise correct.
> > > > > Are you using jython?
>
> > > > > On Oct 12, 9:07 am, jotbe  wrote:
>
> > > > > > Still not working:
>
> > > > > > ### HG rev:
>
> > > > > > $ LC_ALL=C; hg summary
> > > > > > parent: 2503:0f3a2bc13026 tip
> > > > > >  fixed problem with missing identity in auth
> > > > > > branch: default
> > > > > > commit: 2 modified, 1 deleted, 5 unknown
> > > > > > update: (current)
>
> > > > > > ### Py-CLI:
>
> > > > > > $ python web2py.py -P -M -S slides
> > > > > > web2py Web Framework
> > > > > > Created by Massimo Di Pierro, Copyright 2007-2011
> > > > > > Version 1.99.3 (2011-10-11 09:05:14) dev
> > > > > > Database drivers available: SQLite3, pymysql
> > > > > > Python 2.7.2 (default, Jul 27 2011, 15:07:16)
> > > > > > [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
> > > > > > Type "help", "copyright", "credits" or "license" for more
> > > information.
> > > > > > (InteractiveConsole)>>> content = """
>
> > > > > > ... # My slides title
> > > > > > ... ## Slide One
> > > > > > ... this allows you to create slides using markmin
> > > > > > ... ## Slide Two
> > > > > > ... - you can use lists
> > > > > > ... - you can use [[linkshttp://www.google.com]]
> > > > > > ... - you can use images [[imagehttp://image.example.comcenter]]
> > > > > > ... """>>> print MARKMIN(content)
>
> > > > > > My slides titleSlide Onethis allows you to
> > > create
> > > > > > slides using markminSlide Twoyou can use 
> > > > > > lists > > > > > li>you can use http://www.google.com";>
> > >http://www.google.com]]you can use images [[image"
> > > /> > > > > > ul>
>
> > > > > > Regards,
> > > > > > Jan
>
> > > > > > On 12 Okt., 15:29, Massimo Di Pierro 
> > > > > > wrote:
>
> > > > > > > Can you try the latest markmin (from trunk)?
>
> > > > > > > On Oct 12, 2:37 am, jotbe  wrote:
>
> > > > > > > > Your example code seems to trigger a bug in MARKMIN, when using
> > > the
> > > > > > > > link and the image tag in a list:
>
> > > > > > > > ## snip ##
>
> > > > > > > > >>> content = """... # My slides title... ## Slide One... this
> > > allows you to create slides using markmin... ## Slide Two... - you can use
> > &

Re: [web2py] web2py book 4th Edition

2011-12-09 Thread jotbe
Really nice!

On Fri, Dec 9, 2011 at 6:30 PM, Massimo Di Pierro
wrote:

> The book 4th edition (in print) is available here:
>
> http://www.lulu.com/product/paperback/web2py-book-4th-edition/18738286
>
> I will post it on the web site asap and in PDF.
>
> The book described web2py 1.99.3 and later.
>
> Massimo
>