[web2py] help please

2012-12-19 Thread Aurelijus Useckas
I've deleted user information from auth_users and suddenly all my data 
(from other table views) disapears.. Yes, other tables are linked to this 
one. Specifically for info on updates and simillar...

If I restore the same data in auth_users other table still doesn't show 
anything... I event reset the autoincrement and make it appear totally 
identical.. still nothing :(

did i mess up??? :(

-- 





Re: [web2py] help please on adding jquery-ui theme to SQLFORM.grid

2011-11-13 Thread Bruno Rocha
On views/layout.html you have to include/ or replace the code that loads
jquery-ui theme

Change it for your downloaded
theme
This *{{=URL('static', 'css', 'jquery-ui.custom.css')}} is your jquery ui
theme under /static/css/*

On Mon, Nov 14, 2011 at 12:45 AM, tomt  wrote:

> Hi,
>
> I'm looking for an example of how to install and use a jquery theme
> for SQLFORM.grid
>
> I see that I can implement jquery-ui by defining:
> form = SQLFORM.grid(query=db.table.field=='3',ui='jquery-ui')
>
> I see that I can download a theme from http://jqueryui.com/download
> but I don't know where to install it, or how to enable it.  I searched
> the web2py group for examples, but I failed to find any.
>
> I'd appreciate it if someone could post a working example of this
> feature.
>
> Thanks in advance,  - Tom
>
>


-- 

Bruno Rocha
[http://rochacbruno.com.br]


[web2py] help please on adding jquery-ui theme to SQLFORM.grid

2011-11-13 Thread tomt
Hi,

I'm looking for an example of how to install and use a jquery theme
for SQLFORM.grid

I see that I can implement jquery-ui by defining:
form = SQLFORM.grid(query=db.table.field=='3',ui='jquery-ui')

I see that I can download a theme from http://jqueryui.com/download
but I don't know where to install it, or how to enable it.  I searched
the web2py group for examples, but I failed to find any.

I'd appreciate it if someone could post a working example of this
feature.

Thanks in advance,  - Tom



Re: [web2py] Help please on plugin_wiki on http://www.vimeo.com/13485916

2010-09-26 Thread rochacbruno
You are using # but you have to use @ for the decorador 

class PluginWikiWidgets(PluginWikiWidgets):
@staticmethod
def blabla(a,b):
return blabla

Enviado via iPhone

Em 26/09/2010, às 22:59, "tom_tren...@yahoo.com"  
escreveu:

> Hi,
> 
> I have been following the video at http://www.vimeo.com/13485916
> 
> I'm impressed by the possibilities of this plugin and I was able to
> successfully run the examples localy, but I ran into a problem when
> trying to duplicate the tutorial's example of creating a new widget.
> I believe I copied the code correctly, but I receive the following
> error:
> 
> Traceback (most recent call last):
>  File "/home/xa21/web2py/applications/mypwiki/models/plugin_wiki.py",
> line 584, in render_widget
>html = getattr(PluginWikiWidgets,name)(**args)
> TypeError: unbound method sayhi() must be called with
> PluginWikiWidgets instance as first argument (got nothing instead)
> 
> I'm running version 1.85.3 of web2py on fedora linux, and my python
> version is 2.5.2
> 
> The following is the code I entered
>  mypwiki/models/plugin_wiki_custom.py 
> # coding: utf8
> class PluginWikiWidgets(PluginWikiWidgets):
>#staticmethod
>def sayhi(message='Welcome'):
>"""
>This plugin just says hi
>"""
>return SPAN(message,auth.user.first_name)
> .
> 
> ... Home 
> # Example of custom widget
> ``
> name: sayhi
> message: Welcome
> ``:widget
> .
> 
> I'm hoping someone can point out the source of my error.
> 
> Thanks in advance, - Tom


[web2py] Help please on plugin_wiki on http://www.vimeo.com/13485916

2010-09-26 Thread tom_tren...@yahoo.com
Hi,

I have been following the video at http://www.vimeo.com/13485916

I'm impressed by the possibilities of this plugin and I was able to
successfully run the examples localy, but I ran into a problem when
trying to duplicate the tutorial's example of creating a new widget.
I believe I copied the code correctly, but I receive the following
error:

 Traceback (most recent call last):
  File "/home/xa21/web2py/applications/mypwiki/models/plugin_wiki.py",
line 584, in render_widget
html = getattr(PluginWikiWidgets,name)(**args)
TypeError: unbound method sayhi() must be called with
PluginWikiWidgets instance as first argument (got nothing instead)

I'm running version 1.85.3 of web2py on fedora linux, and my python
version is 2.5.2

The following is the code I entered
 mypwiki/models/plugin_wiki_custom.py 
# coding: utf8
class PluginWikiWidgets(PluginWikiWidgets):
#staticmethod
def sayhi(message='Welcome'):
"""
This plugin just says hi
"""
return SPAN(message,auth.user.first_name)
.

... Home 
# Example of custom widget
``
name: sayhi
message: Welcome
``:widget
.

I'm hoping someone can point out the source of my error.

Thanks in advance, - Tom