[web2py] Plugin_wiki, auth.wiki clarification and routing.

2012-10-18 Thread HittingSmoke
This is a sort of two part question, the second part being conditional on 
the answer to the first.

1. Is plugin_wiki deprecated for auth.wiki or am I misinterpreting what's 
going on? I can find some documentation on plugin_wiki but most current 
discussion seems to be on doing the same things with auth.wiki which I can 
find zero documentation on, only discussion. If so, where can I find more 
information on auth.wiki?

2. If plugin_wiki is not obsolete, I'm having an issue with domain routing 
on an app with plugin_wiki installed.

If I have domain routing set up to route blog.domain.com to my blog app, 
plugin_wiki will not work at all. If I try to load plugin_wiki with domain 
routing enabled by going to domain.com/welcome/plugin_wiki/index or any 
variant on that with any other app, I get an invalid controller error 
saying that domain.com/welcome/default/plugin_wiki/index is an invalid 
controller function. If I disable domain routing it otherwise loads the 
page.

-- 





[web2py] plugin_wiki meta-menu

2012-08-06 Thread Martin Weissenboeck
About the meta-menu: I have found in the book

*Homepage:home
Google  http://google.com
*

But how to go to another application on the same server? There should be
something like

*To my function  URL(f='myfunction',c='mycontroller',a='myapplication')*

I have tried

*To my function  http://127.0.0.1:8000/myapplication/mycontroller/myfunction
*

It works, but only from the local computer. Using the real IP-address would
not be a good idea, because portability is lost.
Maybe it's anywhere in the documentation, but I did not find it.

Regards, Martin

-- 





[web2py] Plugin_wiki URLs

2012-06-24 Thread villas
Hi All,

I'd like to rename plugin-wiki URLs.  
Instead of:  app/plugin_wiki/page/my-page,  I would prefer: 
 app/prettyurl/my-page

I can do this in routes.py  
routes-in:  ('/$a/prettyurl/$something',   '/$a/prettyurl/page/$something') 
 and reverse in routes-out

But then it doesn't work;  the problem is the hythen in 'my-page'.  Without 
any hyphens,  it is fine, but I need those hythens.

Is there any way of making this work?  

Regards,
David



-- 





[web2py] plugin_wiki Insufficient privileges on Google App Engine

2012-02-22 Thread Kurt Fehlhauer
When I installed plugin_wiki locally it runs just fine. The same
application uploaded to Google App Engine give me "Insufficient
privileges" when I navigated to the /plugin_wiki/index page. Am I
missing something obvious?

Thanks,
Kurt


[web2py] plugin_wiki star rating widget

2011-11-03 Thread Christopher Kenley
Hello,

Has anyone been able to successfully use this widget across multiple
pages?
I thought I had this running successfully when I had used it on one
page, and it was successfully writing to the plugin_wiki_rating
tables.
However, after adding it to a second page (using a different record
ID), the second widget will not write to database. I have tried many
different things with no results, and searches on the subject bear
nothing. Anyone have experience with this widget?

Thanks,
Chris


[web2py] plugin_wiki crud and auth

2011-10-14 Thread pinwc4
I am attempting to use plugin_wiki with an app I have been developing
but am encountering a problem.  The application itself uses CRUD and I
have integrated CRUD with auth by adding the line crud.settings.auth =
auth in my model.

Unfortunately when I attempt to use plugin_wiki to edit pages I get a
not authorized error message.  It will create the page but not let me
edit.  If I remove the crud.settings.auth = auth line plugin_wiki
works correctly.  But I need that settings so that auth is enforced on
my various CRUD forms.

I was wondering if there is some configuration option or something
that I am missing that will allow plugin_wiki to work when CRUD is
integrated with auth?  From a brief look at the code it does not
appear to be the case.

If not is there any suggestions of how I can make this work together?
My initial thought was just to add the permissions to the table in
question.  I tried to do this from my model file but that does not
work.  I assume it is because the plugin has not defined the tables
before my model is executed.  I would like to avoid modify the plugin
itself as it would be nice to be able to use the latest version
without having to modify it each time.

I tried both the plugin_wiki from the online documentation and the
latest source from the cube2py project just in case this had been
addressed but neither worked.

I appreciate any guidance, this is my first web application and my
first python application so please forgive any obvious things I missed.


[web2py] plugin_wiki problem?

2011-08-10 Thread mart
hi,

i am writing some documentation and using plugin_wiki. When i add
something like:
``

``:code_html (have also tried
using code_python)

I get an error saying "enter 0 to 512 characters". I downloaded the
latest cube2py and copied the wiki specific files to my app and am
still getting the same error. But I have no issues doing this in the
cube2py application.

Note: previously written pages are fine, this just seems to happen
with new pages.

Any idea?

thanks,
Mart :)


[web2py] plugin_wiki & PowerPack

2011-08-07 Thread Gour-Gadadhara Dasa
Hello!

I saw on devel list that the author is working on new PowerPack version and
wonder what is the relationship between plugin_wiki & PowerPack?

Are they supposed to complement each other, make one obsolete or redundant?


Sincerely,
Gour


-- 

“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


[web2py] plugin_wiki fails - missing ABOUT file

2011-08-06 Thread Gour-Gadadhara Dasa
Hiya,

I've tried to install plugin_wiki on web2py-1.98.2, but it fails:

Traceback (most recent call last):
  File "/usr/home/gour/www/web2py/gluon/restricted.py", line 192, in 
restricted
exec ccode in environment
  File 
"/usr/home/gour/www/web2py/applications/admin/controllers/default.py", line 
1224, in 
  File "/usr/home/gour/www/web2py/gluon/globals.py", line 145, in 
self._caller = lambda f: f()
  File 
"/usr/home/gour/www/web2py/applications/admin/controllers/default.py", line 
659, in about
about = safe_read(apath('%s/ABOUT' % app, r=request))
  File 
"/usr/home/gour/www/web2py/applications/admin/controllers/default.py", line 29, 
in safe_read
safe_file = safe_open(a, b)
  File 
"/usr/home/gour/www/web2py/applications/admin/controllers/default.py", line 26, 
in safe_open
return open(a,b)
IOError: [Errno 2] No such file or directory: 
'/usr/home/gour/www/web2py/applications/plugin_wiki/ABOUT'


Is the app properly packaged or something else is the reason to fail?


Sincerely,
Gour

-- 
“In the material world, conceptions of good and bad are
all mental speculations…” (Sri Caitanya Mahaprabhu)

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810




signature.asc
Description: PGP signature


[web2py] plugin_wiki syntaxed, but works fine

2011-05-05 Thread kawate
this is just a report.
The following construct is syntaxed, but works fine.


``
name: create
table: comment
message: 書き込みました
next: {{=request.url}}?title={{=request.vars['title']}}
hidden_fields: posted_at,title
default_fields:title={{=request.vars['title']}}
``:widget


[web2py] plugin_wiki attachment KeyError: 'file'

2011-04-29 Thread nic

I am using 1.95.1 and have just created a new simple app and added the
plugin_wiki, which I have done before in 1.94.xx.

When I try to Attach a file from a plugin_wiki page I get the
following error:

Traceback (most recent call last):
  File "/home/www-data/web2py/gluon/restricted.py", line 181, in
restricted
exec ccode in environment
  File "/home/www-data/web2py/applications/test/views/plugin_wiki/
attachments.html", line 67, in 
  File "/home/www-data/web2py/gluon/dal.py", line 3532, in __getattr__
return self[key]
  File "/home/www-data/web2py/gluon/dal.py", line 3523, in __getitem__
return dict.__getitem__(self, key)
KeyError: 'file'

Have tried several times and downloaded the latest plugin_wiki file.
Any help gratefully accepted.

Best Regards,
Nic.


[web2py] plugin_wiki unsolved merge

2011-04-29 Thread rif
It seems that the downloadable version of plugin_wiki is packaged with an 
unsolved merge in the models folder.

There are three files plugin_wiki.py  plugin_wiki.py.bak 
 plugin_wiki.py.orig

Also the star rating plugin is not functioning well because of this.

BTW where is the plugin_wiki repo?



[web2py] plugin_wiki as help system

2011-04-19 Thread niknok
I'm wondering if there's any way to implement a help system in the
context of a field in conjunction with plugin_wiki.

Conceptual use:

Table('myTable',
Field('myField', help='slug_to_help_page_sub-section')
help='slug_to_help_page_section_index')

In a form, the user will see a help icon beside the input field, which
they can click to view a popup to display more information, and perhaps
with additional link to the main help page for detailed information. 

If plugin_wiki is not installed, then "help" is ignored. 

Seems like a nice feature to add to web2py. What do you think? Has
anyone customized w2p to do something like this?



[web2py] plugin_wiki: KeyError: 'active'

2011-03-09 Thread LotS
I use the source version of web2py: Version 1.93.2 (2011-03-04
23:48:59)
on Windows XP.

I managed to install plugin_wiki.

After I signed in with an authenticated user id, the "Pages" on the
menu will be shown.
Click on it and I can access to the /plugin_wiki/index

After I created a meta-menu page, and try to access  /plugin_wiki/
index again.  I hit into an error as follow,


Traceback (most recent call last):
  File "C:\web2py\gluon\restricted.py", line 188, in restricted
exec ccode in environment
  File "C:\web2py\applications\myapp2/views\plugin_wiki/index.html",
line 113, in 
  File "C:\web2py\gluon\dal.py", line 3347, in __getattr__
return self[key]
  File "C:\web2py\gluon\dal.py", line 3338, in __getitem__
return dict.__getitem__(self, key)
KeyError: 'active'


But I still can point my browser directly to "http://127.0.0.1:8000/
myapp2/plugin_wiki/page/meta-menu" and the rest of the pages works as
normal.

Hope someone can help.


[web2py] plugin_wiki editor automatic formatting

2011-03-03 Thread Plumo
I want to embed some JavaScript in my plugin_wiki page but when I click 
"Submit" the script tags are removed. The Rich Text Editor often tries to 
"help" like this - changing tags, adding quotes, etc. 
For now I am using a plain text box. Is there a way to disable this 
automatic formatting?


[web2py] plugin_wiki printing code

2011-02-26 Thread Sebastian E. Ovide
Hi All,

I'm testing the widget of the plugin_wiki in a view.

I added
{{=plugin_wiki.widget('map',key='yrtable',table='auth_user',width=400,
height=200)}} after installing the plugin but instead of getting a map I'm
getting the JS code printed in the page !

If I see the page generated code, I can see:

etc... any ideas ? thanks -- Sebastian E. Ovide

[web2py] plugin_wiki and public pages

2011-02-22 Thread Sebastian E. Ovide
Hi All,

I've created a public page and as expected I can see it even if I'm not
logged in. Nevertheless the menu PAGE is not visible if I'm not logged in.

Is it working as expected ?

thanks

-- 
Sebastian E. Ovide


[web2py] plugin_wiki Menu (active flag)

2011-02-12 Thread G. Clifford Williams

I'm playing around with plugin_wiki and can't seem to figure out how to set a 
menu item's "active flag" if it infact corresponds to the page that's being 
accessed. 

Any ideas

TIA

--Cliff


Re: [web2py] plugin_wiki

2011-02-11 Thread Albert Abril
I'm not sure what you would mean whit 'the limey green', but if you want to
access the plugin_wiki once installed, you should go to
http://URL/YourApp/plugin_wiki .

On Fri, Feb 11, 2011 at 10:27 PM, stargate  wrote:

> I am trying to apply the plugin_wiki to a test application i created
> in the wizard but when i go to preview the site it doesn't look like
> the limey green look why is that.


[web2py] plugin_wiki

2011-02-11 Thread stargate
I am trying to apply the plugin_wiki to a test application i created
in the wizard but when i go to preview the site it doesn't look like
the limey green look why is that.


[web2py] plugin_wiki routes.py

2011-02-03 Thread Plumo
The default URL's when using plugin_wiki are ugly:

/welcome/plugin_wiki/page/about

Does anyone have a good routes.py for this?


[web2py] plugin_wiki widget jqgrid: colnames or columns?

2011-01-19 Thread blackthorne
The way you define the column names in the Jqgrid plugin is done,
according to the book, with the "columns" attribute is a list of
columns names to be displayed. However, in the plugin_wiki widget
builder interface that is done with the attribute "colnames".
In the code plugin_wiki controller, the used word seems to be
"columns" as well.

That said, I also couldn't make it with columns:

``
name: jqgrid
table: plugin_wiki_page
fields: id,slug,description
columns: title,slug,description
width: 500
col_width: [100,80,320]
height: 300
``:widget

Failed with:
traceback:
TypeError: jqgrid() got an unexpected keyword argument 'columns'

Then I tried "colnames":
And I got a dialog window with the message:
"Length of colNames <> colModel!"


[web2py] plugin_wiki using wiki and html mode

2011-01-16 Thread blackthorne
Consider a control for the page mode and that info would be stored
with the page so that plugin_wiki would know how to render it. When
editing it would be up to you, for each post to decide how do you want
to do it..

Someone already tried to make the two of them to work simultaneously?

Thanks
Francisco Ribeiro


[web2py] plugin_wiki search widget problem

2010-12-15 Thread Johann Spies
Using the following definition:

``
name: search
table: artikel
fields: titel, opsomming, sleutelwoorde, publikasiejaar, joernaal_id,
outeur_id, instansie_id,  isi_indeks, isap_indeks
``:widget

I get this error:

Traceback (most recent call last):
  File "/home/js/web2py/applications/init/models/plugin_wiki.py", line
592, in render_widget
html = getattr(PluginWikiWidgets,name)(**args)
  File "/home/js/web2py/applications/init/models/plugin_wiki.py", line
228, in search
fields=['%s.%s' % (table,f.spritp()) for f in fields.split(',')]
AttributeError: 'str' object has no attribute 'spritp'

My mistake or a bug?

Johann
-- 
 May grace and peace be yours in abundance through the full knowledge of God
and of Jesus our Lord!  His divine power has given us everything we need for
life and godliness through the full knowledge of the one who called us by
his own glory and excellence.
2 Pet. 1:2b,3a


[web2py] plugin_wiki problems

2010-11-30 Thread blackthorne
hi

1.
with the table new like this:
db.define_table('new',
SQLField('photo_id', 'string'),
SQLField('name', 'string', notnull=True, length=16,
requires=IS_NOT_EMPTY()),
SQLField('created', 'datetime',
notnull=True,default=datetime.datetime.now(),requires=IS_DATETIME()),
SQLField('created_by', 'string'),
SQLField('tag', 'string'),
SQLField('link', 'string', length=80, default=None,
requires=IS_URL()),
SQLField('type', 'string', notnull=True, length=16, default=types[0],
requires=IS_IN_SET(types)),
SQLField('slug', 'string', length=32, default=''),
SQLField('description', 'text', notnull=True,length=64,
requires=IS_NOT_EMPTY())
)

Using plugin_wiki, I can't use the "read" widget. Other widgets like
jqgrid work fine.

2. How can I access my app model from the plugin_wiki?

3. how should I map a controller to a plugin_wiki page?

Thank you
Best regards


[web2py] plugin_wiki won't set active flag in response.menu?

2010-11-17 Thread Dan
Just tried to build my onw menu based on the pages from plugin_wiki
but every active flag in response.menu is set to false. Is there any
onther way to determine if a wiki page is active?


[web2py] plugin_wiki syntax highligting - how to use 2 CSS classes?

2010-10-20 Thread Tom Atkins
I'm using plugin_wiki to build a blog and wiki site.  (plugin_wiki is
fantastic for this - thanks Massimo!)

I would like to use a jQuery syntax highlighter instead of the built-in one.
Most of these highlighters require 2 CSS classes, eg:


def test():
blah blah


If I use the markmin code syntax:

``
def test():
blah blah
``syntax python

I can only get one CSS class.  (i.e. it doesn't work with spaces - to use
the built-in highlighter you write ``code_python)

Is there a way to get 2 CSS classes or which file I should change to achieve
this...

Thanks!


[web2py] plugin_wiki

2010-10-10 Thread christina
I just installed the plugin_wiki, but when I go to the "Pages" tab, I
cannot really get anything to work. Following along with the book
tutorial, I tried to make  "home" page, but when I submit, I get a
page that says "This page does not exist yet. Create this page".
Clicking "Create this page" sends me a ticket.

So I tried to manually create a page called home at
http://127.0.0.1:8000/.../plugin_wiki/page/home, but could not. Does
this have something to do with the "templates"? Because when I open
the "Page" tab, there is nothing in the "Templates" drop down. Do I
need to install something else before trying to run the plugin_wiki?

Also, it complained about me not having the correct tables in my
database. Since I did not have auth_user or auth_group tables, it
threw an error. I added empty auth_user and auth_group tables, but it
is still not working. What am I doing wrong?

Thanks


[web2py] plugin_wiki and auth tables

2010-10-04 Thread Christian Foster Howes

Massimo et. al.,

Can we update plugin_wiki to use the auth settings for auth table names? 
 Since i have not looked into implementing table namespaces on GAE yet, 
i rename all my tables with an application prefix so applications don't 
mix data.  when i do that plugin_wiki is not so happy.


I don't think there is a source repository for plugin_wiki, so the 
attached diff is based off of a download from web2py on Thursday Sept 30.


Thanks,

Christian
diff -r c9821604e151 web2py/applications/test/models/plugin_wiki.py
--- a/web2py/applications/test/models/plugin_wiki.pyFri Oct 01 13:19:23 
2010 -0700
+++ b/web2py/applications/test/models/plugin_wiki.pyMon Oct 04 12:09:00 
2010 -0700
@@ -53,17 +53,17 @@
 Field('active','boolean',default=True),
 Field('public','boolean',default=True),
 Field('body','text',default=''),
-Field('role',db.auth_group,
-  
requires=IS_EMPTY_OR(IS_IN_DB(db,'auth_group.id','%(role)s'))),
+Field('role',auth.settings.table_group,
+  
requires=IS_EMPTY_OR(IS_IN_DB(db,'%s.id'%auth.settings.table_group_name,'%(role)s'))),
 Field('changelog',default=''),
 Field('created_by',
-  db.auth_user,default=auth.user_id,
+  auth.settings.table_user,default=auth.user_id,
   writable=False,readable=False),
 Field('created_on','datetime',
   default=request.now,
   writable=False,readable=False),
 Field('modified_by',
-  db.auth_user,default=auth.user_id,update=auth.user_id,
+  
auth.settings.table_user,default=auth.user_id,update=auth.user_id,
   writable=False,readable=False),
 Field('modified_on','datetime',
   default=request.now,update=request.now,
@@ -83,13 +83,13 @@
 Field('name',requires=IS_NOT_EMPTY()),
 Field('file','upload',requires=IS_NOT_EMPTY(),autodelete=True),
 Field('created_by',
-  db.auth_user,default=auth.user_id or 1,
+  auth.settings.table_user,default=auth.user_id or 1,
   writable=False,readable=False),
 Field('created_on','datetime',
   default=request.now,
   writable=False,readable=False),
 Field('modified_by',
-  db.auth_user,default=auth.user_id,update=auth.user_id,
+  
auth.settings.table_user,default=auth.user_id,update=auth.user_id,
   writable=False,readable=False),
 Field('modified_on','datetime',
   default=request.now,update=request.now,
@@ -103,7 +103,7 @@
 Field('record_id','integer',
   writable=False,readable=False),
 Field('body',requires=IS_NOT_EMPTY(),label='Your comment'),
-Field('created_by',db.auth_user,default=auth.user_id,
+
Field('created_by',auth.settings.table_user,default=auth.user_id,
   readable=False,writable=False),
 Field('created_on','datetime',default=request.now,
   readable=False,writable=False), 
migrate=plugin_wiki_migrate)
@@ -112,7 +112,7 @@
 db.define_table('plugin_wiki_tag',
 Field('name',requires=IS_NOT_IN_DB(db,'plugin_wiki_tag.name')),
 Field('links','integer',default=0,writable=False),
-Field('created_by',db.auth_user,writable=False,readable=False,
+
Field('created_by',auth.settings.table_user,writable=False,readable=False,
   default=auth.user_id),
 Field('created_on','datetime',
   default=request.now,writable=False,readable=False),
@@ -433,7 +433,7 @@
 
 @staticmethod
 def 
map(key='ABQIT5em2PdsvF3z5onQpCqv0RTpH3CbXHjuCVmaTc5MkkU4wO1RRhQHEAKj2S9L72lEMpvNxzLVfJt6cg',
-table='auth_user', width=400, height=200):
+table=auth.settings.table_user_name, width=400, height=200):
 """
 ## Embeds a Google map
 Gets points on the map from a table


[web2py] plugin_wiki using jqgrid widget: bottom of grid (controls) is cut off - easy to fix?

2010-09-26 Thread mart
hi,

How do we fix the grid's container size so that it doesn't get cut
off?

Thanks,
Mart :)


[web2py] plugin_wiki: hiding quoted text (or anything else between them)?

2010-09-13 Thread mart
hi,

couldn't find anything earlier posts... so basically, just looking to
see of there is a way to make the contents of quotes (forms for db
query/update, etc.) within plugin_wiki pages disappear while not used/
needed ?


again, any help would be great :)

Thanks,
Mart :)


[web2py] plugin_wiki: renaming Models made my wiki_tables disappear?

2010-09-11 Thread mart
Hi,

Not sure if this expected, or I basically committed a "no, no" when
doing web2py dev work, but... I wanted to have some child apps live
under a common parent app (seemed like a good idea at the time) and
all was working well. Then I decided that one child app needed to be
live a level (folder) higher to accommodate related forms. So I
created the folder structure I wanted, and when all was done, I
deleted the original controllers,models and views and  re-launched the
parent app... and my wiki_tables disappeared! not the non-wiki_tables.
Is this expected behavior and more importantly, is there a way to get
them back?

Maybe a "nice to have" would be a way to rename/move files with auto-
re-factoring right there from app-admin?

Any help/ideas to get them back (if at all possible) would be great
and appreciated! It took a couple of weeks off and on to get the data
story straight, would hate to lose it (I know, should have backed
up... but didn't).

This app was my first attempt at making the torturous Mercurial
experience somewhat bearable by using it as though it were something
like Perforce, easy and straight forward for basic tasks through a UI
(went with previous thread on web2py testing, source-control and  but
tracking)...

Thanks,
Mart :)


[web2py] plugin_wiki: who is authorized?

2010-09-03 Thread Johann Spies
When trying http://localhost:8000/myapp/plugin_wiki  I get an error message:

Not authorized
ACCESS DENIED
Insufficient privileges.

I see in the model for plugin_wiki:


DEFAULT = {
'editor' : auth.user and auth.has_membership(role='editor') or
auth.user_id==1, # if current user a editor?
'mode'   : 'markmin',# 'markmin' or 'html' for wysiwyg editor
'level'  : 3,# 1 - wiki only, 2 - widgets enables, 3 -
remplate render enabled
'migrate': True, # set to False in production
'theme'  : 'ui-darkness' # the jquery-ui theme, mapped into
plugin_wiki/ui/%(theme)s/jquery-ui-1.8.1.custom.css
}

I have created a group 'editor' and added myself to that group but
that did not help.

Johann

-- 
    "Be not deceived; God is not mocked: for whatsoever a
     man soweth, that shall he also reap."
                                  Galatians 6:7


Re: [web2py] plugin_wiki bugs and improvements

2010-08-10 Thread rochacbruno
I think it should be better to show existing comments for non logged-in users. 
And let only logged-in to insert a new comment.

Plus.. I think the comment itself, should render markmin syntax, by permitting 
only most useful markups as **bold** etc

Sent from my iPhone

On 10/08/2010, at 07:22, selecta  wrote:

> page_edit.html
> the elRTE.prototype.options.panels.web2pyPanel should also contain
> 'indent', 'outdent'
> otherwise it is not possible to create nested (un)sorted lists
> 
> the help text for the markmin language should only displayed on mode
> == 'markmin'
> add on line 41 of page_edit.html
> {{if DEFAULT['mode'] == 'markmin':}}
> and on line 91
> {{pass}}
> 
> controllers/plugin_wiki.py has a syntax mistake
> line 131 reads
> form = A(T('login to comment',_href=auth.settings.login_url))
> but should read
> form = A(T('login to comment'),_href=auth.settings.login_url)


[web2py] plugin_wiki bugs and improvements

2010-08-10 Thread selecta
page_edit.html
the elRTE.prototype.options.panels.web2pyPanel should also contain
'indent', 'outdent'
otherwise it is not possible to create nested (un)sorted lists

the help text for the markmin language should only displayed on mode
== 'markmin'
add on line 41 of page_edit.html
{{if DEFAULT['mode'] == 'markmin':}}
and on line 91
{{pass}}

controllers/plugin_wiki.py has a syntax mistake
line 131 reads
form = A(T('login to comment',_href=auth.settings.login_url))
but should read
form = A(T('login to comment'),_href=auth.settings.login_url)


[web2py] plugin_wiki with 1.82.1 "meta" page error

2010-08-05 Thread cadrentes
I'm running 1.82.1 and installed plugin_wiki.  When attempting to
create "meta" pages I get the following error:

  File "/home/www-data/web2py/applications/welcome/controllers/
plugin_wiki.py", line 70, in page_editbody=request.vars.template
and w(slug=request.vars.template).body or '')AttributeError:
'NoneType' object has no attribute 'body'

Any suggestions?


[web2py] plugin_wiki suggestions

2010-07-31 Thread Bruno Rocha
Sorry again, I am creating a new thread about plugin_wiki.

I wonder if there is any public place where we can write suggestions,
criticisms, and send questions exclusively about plugin_wiki, markmin and
cube2py?

-- 

http://rochacbruno.com.br


[web2py] plugin_wiki - how to define the target to an external link?

2010-07-29 Thread Bruno Rocha
Any way to define the target="_blank" for  [["a link" http://someurl.com]]

any way like this: [["a link" http://someurl.com "_blank"]] ???

-- 

http://rochacbruno.com.br


[web2py] plugin_wiki - Ajax to save pages?

2010-07-29 Thread Bruno Rocha
 to save a page in plugin_wiki page editor, we have to submit the page or
focus in page title then hit enter.

As I am writing large pages, I have 2 displays when editing a page, first to
edit the code, and the other to frequently refresh and view the result.

It is so annoying to submit the page every time I need to have a preview, is
there any way to save the page code via Ajax, just like appadmin edit_area ?

or may be, to have a preview panel, as you can see when editing a slice on <
web2pyslices.com> or the one used to edit markdown in 

Tks

-- 

http://rochacbruno.com.br


[web2py] Plugin_wiki - the URL() helper has changed in version 1.81.5?

2010-07-28 Thread Bruno Rocha
##plugin_wiki
There was some change in the URL() helper, from 1.81.4 to 1.81.5?

To the search widget in <
http://web2pybrasil.appspot.com/cursoweb2py/default/index>
before, in 1.81.4 I did this:

return UL(*[LI(*[A(db(db.plugin_wiki_page.slug==row)\

.select(db.plugin_wiki_page.title)[0].title,\

_href=URL(r=request,f='page',args=[row,]))])\
for row in found])


and the result was:
Home

but trying localy with the new version 1.81.5 the result is:

Home

Notice, that I am doing it with ajax() to load the item list

$('#search').keyup(function(){
ajax("{{=URL(r=request,
c='plugin_wiki',f='page.load/searchpages')}}",['search'],'target');
return false;
});

Why .load is being appended to the url generated by URL() ?

Something that can be done to continue as before?

Tks

-- 

http://rochacbruno.com.br


[web2py] [Plugin_wiki] - Manage categories for blog pages and posts

2010-07-23 Thread Bruno Rocha
Hello, I'm migrating my blog from wordpress to web2py, and to make
this possible, I'm creating and testing a series of widgets in
plugin_wiki.

My intention is to create a blog platform to be based only on the
plugin_wiki custom widgets, creating tables and defining widgets
through "meta-code.

I do not want to  change models, controllers and views, not touching
the core of the framework or plugin.

I already have several widgets almost ready, generally cloning
wordpress features.

The first widget I'm testing at GAE is the widget to manage the
categories of pages, and make possible to diff pages from posts, and
post categories

It is available at this link: http://web2pybrasil.appspot.com/c2p/

I need suggestions, am I going the right way?
could improve this code, save resources and etc?

Is running on GAE, and therefore needed to adapt some things

someone is willing to help?

Thank you.

{{ }}'s

http://web2pybrasil.appspot.com/c2p/

-- 

http://rochacbruno.com.br


[web2py] plugin_wiki / roles

2010-07-21 Thread aure
Hi everyone,

Massimo, thanks a lot for the last video.
I have just tried everything on a webfaction web2py website and this
is really fast and easy to build applications this way! :D

I have questions considering roles though. At the bottom of the Pages
when we build them using plugin_wiki, I can see a drop-down menu
called "Role:" By default it shows empty on my pages, but if I click
on it I get an option for using "user_1". So my first question is:

- what difference does it make to select "user_1" instead of empty
when I build a page?


Then, how can I use roles in a simple blog scenario, in which I would
like to have one admin (me) which gets access to some pages that
normal visitors (which will not login) won't get access to.

I would like to add that I am a bit confused with how to separate
between the (role of the) creator of the app, which has full control
during development and that (I guess) has to be removed from the
finished application versus the admin(s) of the finished
application...

Thanks in advance,
Aurelien


[web2py] plugin_wiki

2010-07-20 Thread Pete Emerson
I just watched this video about plugin_wiki (it was posted to Hacker
News):

http://www.vimeo.com/13485916 (What is going on with web2py?)

It seems to me that vast number of dynamic web sites out there could
be done via web2py and plugin_wiki, and it makes me wonder who else is
doing their own approach and what might be learned from them.

What are the projects out there that have inspired the plugin_wiki,
regardless of language choice?
What does the roadmap look like for the future?

This is amazing work; I'm excited to create my own page via
plugin_wiki and take it for a spin from the perspective of a python
newbie.

Pete