I found a trick to do that

as #anchor marked with [[anything]] is rendered as <p><span
id='anything'></span></p> ( which I am not sure if it is a good html pratice
)

BTW, I solved my problem on white spaces with CSS

[[br]] = <span id="br"> I want <br />
[[brbr]] = <span id="brbr> I want <br /><br />
plus
[[hr]] = <span id="hr"> I want <hr>

the CSS

#br{
height:15px;
line-height:15px;
display:block;
}
#brbr{
height:30px;
line-height:15px;
display:block;
}
#hr{
width:100%;
height:2px;
border-top: 1px solid black;
display:block;
}

I also modified markin.py to render <br> just for curiosity, but I decide to
stay with only CSS

regex_br = re.compile('\[\[\sbr\s\]\]')  and [[ br ]] is rendered as <br> by
defining text = regex_br.sub('<br>')



2010/7/13 mdipierro <[email protected]>

> You can override the default behavior, just set in db.py
>
> plugin_wiki_editor = ..... your condition ....
>
> You cannot insert white spaces in markmin unless you do
>
>  `` ``:template
>
> but it is horrible.
>
> On 13 Lug, 17:07, Chris S <[email protected]> wrote:
> > Ah great, you're correct GAE does not start at id==1 (or it doesn't
> > guarantee it).
> >
> > Any chance we could make the 'editor' group a variable so that when
> > importing it into existing applications we can set the name to be that
> > of an already created 'admin' group?
> > Another thing I've been doing recently is to make the {{extend
> > 'layout.html'}} in all of the views a varriable.  This lets me easily
> > swap to a different layout with out having to rename files, or even
> > swap on the fly.  I can manually do this but it might be something
> > worth putting into the files.  It could just be set with the other
> > 'required' globals to default to 'layout.html'.
> >
> > This looks really great I love the storing of pages in a DB and the
> > auto-history tracking.  How do I go about inserting page breaks </br>
> > or white space in markmin?  So far that's the only thing making me
> > want to stick to WYSIWYG editing in HTML, though I like the look of
> > markmin.
> >
> > On Jul 13, 4:06 pm, mdipierro <[email protected]> wrote:
> >
> > > The first user (id==1) is editor by default (but not on GAE). Create a
> > > group with role='editor' and make yourself member using appadmin.
> >
> > > On 13 Lug, 13:11, Chris S <[email protected]> wrote:
> >
> > > > Ah it's an authorization thing.
> >
> > > > I can get myself to the the index page now, but I'm still not sure
> how
> > > > I make myself a 'plugin_wiki_editor' I tried creating a group of that
> > > > name and using appadmin to add my login to that group but that didn't
> > > > work.  Maybe I'm missing something easy, or maybe the first
> registered
> > > > user needs to become an 'editor'?  I'm not sure how anyone gets to be
> > > > an editor if you have to first be one to assign the rights...
> >
> > > > On Jul 13, 12:42 pm, Chris S <[email protected]> wrote:
> >
> > > > > I also meant to ask, does plugin_wiki just come with cube2py?  Can
> it
> > > > > also be downloaded somewhere separately?
> > > > > I thought it could, but I can't find it anwywhere.  Can someone
> point
> > > > > me to where plugin_wiki is?
> >
> > > > > On Jul 13, 12:39 pm, Chris S <[email protected]> wrote:
> >
> > > > > > I just loaded the latest trunk, and the latest cube2py at:
> https://cube2py.googlecode.com/hg/cube2py
> >
> > > > > > I cleared the datastore and memcache then pointed my browser to
> > > > > > 127.0.0.1:8080/cube2py
> >
> > > > > > I get the login screen, but when I try to register I get a 404.
>  The
> > > > > > entire log from the initial page view to the redirect to home is
> shown
> > > > > > below.
> > > > > > Am I using the correct location for the cube2py repository?
> >
> > > > > > ------Complete Log----------
> > > > > > INFO     2010-07-13 17:35:46,755 gaehandler.py:57] **** Request:
> > > > > > 25.00ms/25.65ms (real time/cpu time)
> > > > > > INFO     2010-07-13 17:35:46,780 dev_appserver.py:3268] "GET
> /cube2py
> > > > > > HTTP/1.1" 303 -
> > > > > > INFO     2010-07-13 17:35:46,835 gaehandler.py:57] **** Request:
> > > > > > 23.00ms/23.60ms (real time/cpu time)
> > > > > > INFO     2010-07-13 17:35:46,862 dev_appserver.py:3268] "GET
> /cube2py/
> > > > > > plugin_wiki/page/home HTTP/1.1" 303 -
> > > > > > INFO     2010-07-13 17:35:46,921 gaehandler.py:57] **** Request:
> > > > > > 27.00ms/26.93ms (real time/cpu time)
> > > > > > INFO     2010-07-13 17:35:46,947 dev_appserver.py:3268] "GET
> /cube2py/
> > > > > > default/user/login HTTP/1.1" 200 -
> > > > > > ERROR    2010-07-13 17:35:47,092 dev_appserver.py:2633] Error
> > > > > > encountered reading file "C:\Users\chris.sanders\Documents\Misc
> > > > > > \workspace\WebDev\applications/cube2py/static/echo/images/ddd-
> > > > > > gradient.jpg":
> > > > > > [Errno 2] No such file or directory: 'C:\\Users\\chris.sanders\
> > > > > >
> \Documents\\Misc\\workspace\\WebDev\\applications/cube2py/static/echo/
> > > > > > images/ddd-gradient.jpg'
> > > > > > INFO     2010-07-13 17:35:47,118 dev_appserver.py:3268] "GET
> /cube2py/
> > > > > > static/echo/images/ddd-gradient.jpg HTTP/1.1" 404 -
> > > > > > INFO     2010-07-13 17:35:51,035 gaehandler.py:57] **** Request:
> > > > > > 29.00ms/28.97ms (real time/cpu time)
> > > > > > INFO     2010-07-13 17:35:51,062 dev_appserver.py:3268] "GET
> /cube2py/
> > > > > > default/user/register HTTP/1.1" 200 -
> > > > > > ERROR    2010-07-13 17:35:51,206 dev_appserver.py:2633] Error
> > > > > > encountered reading file "C:\Users\chris.sanders\Documents\Misc
> > > > > > \workspace\WebDev\applications/cube2py/static/echo/images/ddd-
> > > > > > gradient.jpg":
> > > > > > [Errno 2] No such file or directory: 'C:\\Users\\chris.sanders\
> > > > > >
> \Documents\\Misc\\workspace\\WebDev\\applications/cube2py/static/echo/
> > > > > > images/ddd-gradient.jpg'
> > > > > > INFO     2010-07-13 17:35:51,230 dev_appserver.py:3268] "GET
> /cube2py/
> > > > > > static/echo/images/ddd-gradient.jpg HTTP/1.1" 404 -
> > > > > > INFO     2010-07-13 17:36:01,484 gaehandler.py:57] **** Request:
> > > > > > 57.00ms/57.08ms (real time/cpu time)
> > > > > > INFO     2010-07-13 17:36:01,512 dev_appserver.py:3268] "POST
> /cube2py/
> > > > > > default/user/register HTTP/1.1" 303 -
> > > > > > INFO     2010-07-13 17:36:01,569 gaehandler.py:57] **** Request:
> > > > > > 28.00ms/27.92ms (real time/cpu time)
> > > > > > INFO     2010-07-13 17:36:01,598 dev_appserver.py:3268] "GET
> /cube2py/
> > > > > > default/index HTTP/1.1" 303 -
> > > > > > INFO     2010-07-13 17:36:01,607 dev_appserver_index.py:205]
> Updating
> > > > > > C:\Users\chris.sanders\Documents\Misc\workspace\WebDev\index.yaml
> > > > > > INFO     2010-07-13 17:36:01,665 gaehandler.py:57] **** Request:
> > > > > > 27.00ms/26.94ms (real time/cpu time)
> > > > > > INFO     2010-07-13 17:36:01,694 dev_appserver.py:3268] "GET
> /cube2py/
> > > > > > plugin_wiki/page/home HTTP/1.1" 404 -
> > > > > > ---------------------------
>



-- 

http://rochacbruno.com.br

Reply via email to