Published my collection of plugins

641 views
Skip to first unread message

kenji4569

unread,
Aug 26, 2011, 12:35:40 PM8/26/11
to web2py-users
Hi, I've just published a collection of plugins which I'd created for
some web2py products (mainly cms sites) in my job:

The index page:
http://dev.s-cubism.com/web2py_plugins

The plugins are below:

[Form Widgets]
Horizontal Radio Widget http://dev.s-cubism.com/plugin_hradio_widget
Multiple Select Widget http://dev.s-cubism.com/plugin_multiselect_widget
Suggest Widget http://dev.s-cubism.com/plugin_suggest_widget
Lazy Options Widget http://dev.s-cubism.com/plugin_lazy_options_widget
Anytime Widget http://dev.s-cubism.com/plugin_anytime_widget
Color Widget http://dev.s-cubism.com/plugin_color_widget
elRTE WYSIWYG Widget http://dev.s-cubism.com/plugin_elrte_widget
Uploadify Widget http://dev.s-cubism.com/plugin_uploadify_widget

[Form Customize]
Solid Form http://dev.s-cubism.com/plugin_solidform
Not-Empty Marker http://dev.s-cubism.com/plugin_notemptymarker

[Table Customize]
Solid Table http://dev.s-cubism.com/plugin_solidtable
Pagenator http://dev.s-cubism.com/plugin_paginator
Table Scope http://dev.s-cubism.com/plugin_tablescope
Table Checkbox http://dev.s-cubism.com/plugin_tablecheckbox
Table Permuter http://dev.s-cubism.com/plugin_tablepermuter

You can try demos, see souces, and download plugins (MIT Licence).
I'll appreciate your feedback and advises (especially for design
decisions).
I'll keep trying to create useful plugins and to improve them!

Massimo Di Pierro

unread,
Aug 26, 2011, 12:42:15 PM8/26/11
to web2py-users
WOW. fantastic!

massimo

On Aug 26, 11:35 am, kenji4569 <hos...@s-cubism.jp> wrote:
> Hi, I've just published a collection of plugins which I'd created for
> some web2py products (mainly cms sites) in my job:
>
> The index page:http://dev.s-cubism.com/web2py_plugins
>
> The plugins are below:
>
> [Form Widgets]
>  Horizontal Radio Widgethttp://dev.s-cubism.com/plugin_hradio_widget
>  Multiple Select Widgethttp://dev.s-cubism.com/plugin_multiselect_widget
>  Suggest Widgethttp://dev.s-cubism.com/plugin_suggest_widget
>  Lazy Options Widgethttp://dev.s-cubism.com/plugin_lazy_options_widget
>  Anytime Widgethttp://dev.s-cubism.com/plugin_anytime_widget
>  Color Widgethttp://dev.s-cubism.com/plugin_color_widget
>  elRTE WYSIWYG Widgethttp://dev.s-cubism.com/plugin_elrte_widget
>  Uploadify Widgethttp://dev.s-cubism.com/plugin_uploadify_widget
>
> [Form Customize]
>  Solid Formhttp://dev.s-cubism.com/plugin_solidform
>  Not-Empty Markerhttp://dev.s-cubism.com/plugin_notemptymarker
>
> [Table Customize]
>  Solid Tablehttp://dev.s-cubism.com/plugin_solidtable
>  Pagenatorhttp://dev.s-cubism.com/plugin_paginator
>  Table Scopehttp://dev.s-cubism.com/plugin_tablescope
>  Table Checkboxhttp://dev.s-cubism.com/plugin_tablecheckbox
>  Table Permuterhttp://dev.s-cubism.com/plugin_tablepermuter

Ross Peoples

unread,
Aug 26, 2011, 1:18:18 PM8/26/11
to web...@googlegroups.com
These are really great. The color picker plugin and form plugins are really useful to me. Thank you for sharing these. Maybe some of these could be integrated into web2py.

Bruno Rocha

unread,
Aug 26, 2011, 2:05:08 PM8/26/11
to web...@googlegroups.com
Great!  

Lazy Options and Anytime are amazing,

AnyTime fits perfectly with the new web2py scheduller!
--



--
Bruno Rocha
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos cuidados com os animais: http://AnimalSystem.com.br ]
[ Consultoria em desenvolvimento web: http://www.blouweb.com ]

Angelo Compagnucci

unread,
Aug 26, 2011, 12:49:41 PM8/26/11
to web...@googlegroups.com
I think that some of this should be included in web2py!

Great work!

2011/8/26 Massimo Di Pierro <massimo....@gmail.com>:

DenesL

unread,
Aug 26, 2011, 3:07:12 PM8/26/11
to web2py-users
+1
specially like Anytime and Solid Table

Stef Mientki

unread,
Aug 26, 2011, 3:22:32 PM8/26/11
to web...@googlegroups.com
On 26-08-2011 19:18, Ross Peoples wrote:
> These are really great. The color picker plugin and form plugins are really useful to me. Thank
> you for sharing these. Maybe some of these could be integrated into web2py.
+1

Massimo Di Pierro

unread,
Aug 26, 2011, 5:37:01 PM8/26/11
to web2py-users
I would take a patch to include anytime.js in web2py as a replacement
to calendar.js. I like the way it is internationalized.

I would also take a patch to add multiline support to SQLTABLE

Massimo Di Pierro

unread,
Aug 26, 2011, 5:37:53 PM8/26/11
to web2py-users
Do you want to host and manage all plugins? You have done an excellent
job here. You deserve to be the plugin master.

Massimo

On Aug 26, 11:35 am, kenji4569 <hos...@s-cubism.jp> wrote:
> Hi, I've just published a collection of plugins which I'd created for
> some web2py products (mainly cms sites) in my job:
>
> The index page:http://dev.s-cubism.com/web2py_plugins
>
> The plugins are below:
>
> [Form Widgets]
>  Horizontal Radio Widgethttp://dev.s-cubism.com/plugin_hradio_widget
>  Multiple Select Widgethttp://dev.s-cubism.com/plugin_multiselect_widget
>  Suggest Widgethttp://dev.s-cubism.com/plugin_suggest_widget
>  Lazy Options Widgethttp://dev.s-cubism.com/plugin_lazy_options_widget
>  Anytime Widgethttp://dev.s-cubism.com/plugin_anytime_widget
>  Color Widgethttp://dev.s-cubism.com/plugin_color_widget
>  elRTE WYSIWYG Widgethttp://dev.s-cubism.com/plugin_elrte_widget
>  Uploadify Widgethttp://dev.s-cubism.com/plugin_uploadify_widget
>
> [Form Customize]
>  Solid Formhttp://dev.s-cubism.com/plugin_solidform
>  Not-Empty Markerhttp://dev.s-cubism.com/plugin_notemptymarker
>
> [Table Customize]
>  Solid Tablehttp://dev.s-cubism.com/plugin_solidtable
>  Pagenatorhttp://dev.s-cubism.com/plugin_paginator
>  Table Scopehttp://dev.s-cubism.com/plugin_tablescope
>  Table Checkboxhttp://dev.s-cubism.com/plugin_tablecheckbox
>  Table Permuterhttp://dev.s-cubism.com/plugin_tablepermuter

Christopher Steel

unread,
Aug 26, 2011, 9:51:07 PM8/26/11
to web...@googlegroups.com
What a fantastic collection of plugins. Design wise I would say you are in the right zone, clean, light and nice examples.

Great job!

Chris

Bruno Rocha

unread,
Aug 27, 2011, 4:05:53 AM8/27/11
to web...@googlegroups.com
Thank you Kenji!

I just incorporated all plugins in my system, and made it all JQUeryUI themeable.

On Fri, Aug 26, 2011 at 1:35 PM, kenji4569 <hos...@s-cubism.jp> wrote:

Bruno Rocha

unread,
Aug 27, 2011, 4:11:48 AM8/27/11
to web...@googlegroups.com
I loved the extracolumns feature! this really need to be included in SQLTABLE!

Martín Mulone

unread,
Aug 27, 2011, 7:00:24 AM8/27/11
to web...@googlegroups.com
Really great job kenji. I see you take time to make order in sqltable :O. Please subscribe to web2py-developers. Perhaps we can replace sqltable with your solidtable, also we are making grid and smartgrid and perhaps your ideas can be very helpfully.

2011/8/27 Bruno Rocha <rocha...@gmail.com>

I loved the extracolumns feature! this really need to be included in SQLTABLE!



--

Martín Mulone

unread,
Aug 27, 2011, 7:01:07 AM8/27/11
to web...@googlegroups.com
Bruno extracolumns are in SQLTABLE.

2011/8/27 Bruno Rocha <rocha...@gmail.com>

I loved the extracolumns feature! this really need to be included in SQLTABLE!



--

Bruno Rocha

unread,
Aug 27, 2011, 8:30:20 AM8/27/11
to web...@googlegroups.com


On Sat, Aug 27, 2011 at 8:01 AM, Martín Mulone <mulone...@gmail.com> wrote:
Bruno extracolumns are in SQLTABLE.


really?

LOL.. never knew about it.

kenji4569

unread,
Aug 27, 2011, 1:27:16 PM8/27/11
to web2py-users
Thank you all for your wonderful comments.

> Do you want to host and manage all plugins?
Currently I doubt if I could commit this,
though I want to contribute more as much as I could.

> I see you take time to make order in sqltable :O.
> Please subscribe to web2py-developers.
I will subscribe to it.
But first I need time to see how the development goes on.

On 8月27日, 午後9:30, Bruno Rocha <rochacbr...@gmail.com> wrote:

kenji4569

unread,
Aug 29, 2011, 12:06:30 AM8/29/11
to web2py-users
I got some bug reports for the Solid Table, and fixed the bugs:

OrderbySelector fails when current_orderby is null
https://github.com/kenji4569/sqlabs/issues/34

solidtable fails when headers='labels'
https://github.com/kenji4569/sqlabs/issues/32

SOLID TABLE fails when columns=[[a,b],None,[c,d]]
https://github.com/kenji4569/sqlabs/issues/37

Thanks for reporting them.

Massimo Di Pierro

unread,
Aug 29, 2011, 12:16:14 AM8/29/11
to web2py-users
I would definitively want to see multiline records in SQLFORM.grid. Is
anybody interested in doing this?

Massimo

On Aug 28, 11:06 pm, kenji4569 <hos...@s-cubism.jp> wrote:
> I got some bug reports for the Solid Table, and fixed the bugs:
>
> OrderbySelector fails when current_orderby is nullhttps://github.com/kenji4569/sqlabs/issues/34

peter

unread,
Aug 29, 2011, 5:40:01 AM8/29/11
to web2py-users
Thanks for quick bug fixes
Are you considering adding pagination?

Peter

On Aug 29, 5:16 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> I would definitively want to see multiline records in SQLFORM.grid. Is
> anybody interested in doing this?
>
> Massimo
>
> On Aug 28, 11:06 pm, kenji4569 <hos...@s-cubism.jp> wrote:
>
>
> T
> > I got some bug reports for the Solid Table, and fixed the bugs:
>
> > OrderbySelector fails when current_orderby is nullhttps://github.com/kenji4569/sqlabs/issues/34
>
> > solidtable fails when headers='labels'https://github.com/kenji4569/sqlabs/issues/32
>
> > SOLID TABLE fails when columns=[[a,b],None,[c,d]]https://github.com/kenji4569/sqlabs/issues/37
>
> > Thanks for reporting them.
>
> > On 8月28日, 午前2:27, kenji4569 <hos...@s-cubism.jp> wrote:
>
> > > Thank you all for your wonderful comments.
>
> > > > Do you want to host and manage all plugins?
>
> > > Currently I doubt if I could commit this,
> > > though I want to contribute more as much as I could.
>
> > > > I see you take time to make order in sqltable :O.
> > > > Please subscribe to web2py-developers.
>
> > > I will subscribe to it.
> > > But first I need time to see how the development goes on.
>
> > > On 8月27日, 午後9:30, Bruno Rocha <rochacbr...@gmail.com> wrote:
>
> > > > On Sat, Aug 27, 2011 at 8:01 AM, Martín Mulone <mulone.mar...@gmail.com>wrote:
>
> > > > > Bruno extracolumns are in SQLTABLE.
>
> > > > really?
>
> > > > LOL.. never knew about it.- Hide quoted text -
>
> - Show quoted text -

Massimo Di Pierro

unread,
Aug 29, 2011, 8:00:10 AM8/29/11
to web2py-users
SQLFORM.grid(query)
SQLFORM.smartgrid(table)

are replacements for SQLTABLE and crud. they have search, pagination,
sorting, and lots more. Give them a try.

Omi Chiba

unread,
Aug 29, 2011, 11:00:34 AM8/29/11
to web2py-users
It's just GREAT !!
I love the Suggest Widget.

On Aug 29, 7:00 am, Massimo Di Pierro <massimo.dipie...@gmail.com>

tomt

unread,
Aug 29, 2011, 10:38:32 PM8/29/11
to web2py-users
Hi,

Thanks for the great contributions to web2py. I'm looking forward to
trying them.

I implemented web2py.plugin.elrte_widget.w2p and while it worked great
with firefox, I had some problems using internet explorer.
Specifically, the dropdown boxes, such as the colorpicker, disappear
before I can make a selection.

This happened with IE7 and IE8. I used the same IE browser to go to
the http://elrte.org/demo and the problem didn't exist there. Does
anyone else see this problem?

- Tom

kenji4569

unread,
Aug 30, 2011, 6:05:02 AM8/30/11
to web2py-users
Hi, Tom.

Thank you for reporting the bug.
I just fixed it.
Please check: http://dev.s-cubism.com/plugin_elrte_widget
(you might need to clear the browser cache)

[modification detail]
I upgraded the elrte version from 1.2 to 1.3.
Additionally, since the version 1.3 had a serious IE problem, I
applied some patches for it.
I also slightly modified the plugin css not to conflict with the site
css.
(https://github.com/kenji4569/sqlabs/issues/39)

Kenji

On 8月30日, 午前11:38, tomt <tom_tren...@yahoo.com> wrote:
> Hi,
>
> Thanks for the great contributions to web2py.  I'm looking forward to
> trying them.
>
> I implemented web2py.plugin.elrte_widget.w2p and while it worked great
> with firefox, I had some problems using internet explorer.
> Specifically, the dropdown boxes, such as the colorpicker, disappear
> before I can make a selection.
>
> This happened with IE7 and IE8.  I used the same IE browser to go to
> thehttp://elrte.org/demoand the problem didn't exist there. Does

Daniel Aguayo

unread,
Aug 30, 2011, 10:48:10 AM8/30/11
to web...@googlegroups.com
fantastic kenji! nice job

tomt

unread,
Aug 30, 2011, 11:14:49 AM8/30/11
to web2py-users
Hi,

I tried your update, and I can now successfully modify text color and
background color with IE7 and IE8. Unfortunately I still see the same
problem with 'Format', 'Font size' and 'Font' dropdown selections.
That is,
the dropdown selection is erased before I can select an option.

- Tom

On Aug 30, 4:05 am, kenji4569 <hos...@s-cubism.jp> wrote:
> Hi, Tom.
>
> Thank you for reporting the bug.
> I just fixed it.
> Please check:http://dev.s-cubism.com/plugin_elrte_widget
> (you might need to clear the browser cache)
>
> [modification detail]
> I upgraded theelrteversion from 1.2 to 1.3.
> Additionally, since the version 1.3 had a serious IE problem, I
> applied some patches for it.
> I also slightly modified the plugin css not to conflict with the site
> css.
> (https://github.com/kenji4569/sqlabs/issues/39)
>
> Kenji
>
> On 8月30日, 午前11:38, tomt <tom_tren...@yahoo.com> wrote:
>
>
>
> > Hi,
>
> > Thanks for the great contributions to web2py.  I'm looking forward to
> > trying them.
>
> > I implemented web2py.plugin.elrte_widget.w2p and while it worked great
> > with firefox, I had some problems using internet explorer.
> > Specifically, the dropdown boxes, such as the colorpicker, disappear
> > before I can make a selection.
>
> > This happened with IE7 and IE8.  I used the same IE browser to go to
> > thehttp://elrte.org/demoandthe problem didn't exist there. Does
> > anyone else see this problem?
>
> > - Tom- Hide quoted text -

Richard Vézina

unread,
Aug 30, 2011, 11:30:10 AM8/30/11
to web...@googlegroups.com
Just wonderful!

Richard

kenji4569

unread,
Aug 30, 2011, 9:47:02 PM8/30/11
to web2py-users
> I still see the same
> problem with 'Format', 'Font size' and 'Font' dropdown selections.
Sorry, I addressed the issue, and I think it would be fixed.
The cause for this is null entry for the text area.

Kenji
> > > thehttp://elrte.org/demoandtheproblem didn't exist there. Does

Richard Vézina

unread,
Aug 31, 2011, 3:25:05 PM8/31/11
to web...@googlegroups.com
Hello,

I just try anydate plugin... It works great except that it seems to conflict with jQuery UI tabs and dialog... It no show up when my form are called with LOAD(), so it also could it be conflicting with LOAD() of web2py.  Also there is no way we can move it like the actual datepicker...

Richard

kenji4569

unread,
Sep 1, 2011, 6:35:42 AM9/1/11
to web2py-users
Hi Richard,

thank you for your feedback.

>It works great except that it seems to conflict with jQuery UI tabs and dialog...
I fixed it (tested Chrome, FF, IE).
See: http://dev.s-cubism.com/plugin_anytime_widget/test/with_jquery_ui
(The anytime css should precede the jquery ui css)

>It no show up when my form are called with LOAD()
I also fixed it.
See: http://dev.s-cubism.com/plugin_anytime_widget/test/_/load
(I implemented a dynamic loader for js and css)

Note however, since IE(<=8?) could not put a dynamic css before loaded
css,
the conflict for jquery-ui still occurs for IE(<=8?).
see: http://dev.s-cubism.com/plugin_anytime_widget/test/with_jquery_ui/load

>there is no way we can move it like the actual datepicker...
This might be difficult to implement.

Regards,
Kenji
> > > > > thehttp://elrte.org/demoandtheproblemdidn't exist there. Does

Richard Vézina

unread,
Sep 1, 2011, 9:53:36 AM9/1/11
to web...@googlegroups.com
Great!

It nice that you take care of feedback... Don't worry about IE ;-)

For moving, I think it a most have feature since the actual datepicker has it...

What has to be done to make it available?

Maybe the actual datepicker could be of some help to figure out how to make it moves...

Thank Kenji

Richard

tomt

unread,
Sep 3, 2011, 11:38:01 PM9/3/11
to web2py-users
Kenji,

Thanks for contributing your great plugins. I've started to use
solidtable and solidform and I expect that I will use them a lot
because they really improve the look and usability of the web2py apps
I've been working on.

I was wondering if solidtables has a formatting option that will
display a text field without escaping the html tags?

I'm currently doing this by building tables in a view and using:
<td>{{=XML(row.status_info.description)}}</td>

The following is an example of the html I want to display: <p>Follow
<span style="color: rgb(255, 0, 0);">procedure</span> in <u>station</
u> notes</p>

This works ok, but I just thought that if solidtable already has the
ability to do this, I'd try it instead.

Thanks - Tom

kenji4569

unread,
Sep 4, 2011, 4:59:31 AM9/4/11
to web2py-users
>Maybe the actual datepicker could be of some help to figure out how to make it moves...
Thanks, but I couldn't read the source of the datepicker since it's
compressed (I couldn't find the readable one in the host site).
Other solution might be using jquery.ui.draggable, but it's not so
light as to just make it draggable.
So, for now, I leave the anytime.js unmodified.

Kenji
> > > > > > > thehttp://elrte.org/demoandtheproblemdidn'texist there. Does

António Ramos

unread,
Sep 4, 2011, 5:02:54 AM9/4/11
to web...@googlegroups.com
Hello
the elRTE WYSIWYG Widget does not allow to "import" a file other than an image.
It would be nice to import for example a pdf or a doc file

Thank you
António


2011/9/4 kenji4569 <hos...@s-cubism.jp>

kenji4569

unread,
Sep 4, 2011, 5:04:17 AM9/4/11
to web2py-users
>I was wondering if solidtables has a formatting option that will
> display a text field without escaping the html tags?
You can do this by using the "represent" feature of Field, as in
SQLTABLE:
db.status_info.description.represent = lambda v: XML(v)

kenji4569

unread,
Sep 4, 2011, 5:17:02 AM9/4/11
to web2py-users
>the elRTE WYSIWYG Widget does not allow to "import" a file other than an
>image.
>It would be nice to import for example a pdf or a doc file
Thanks for your proposal.
I think it would be easy to implement it, because the image chooser
can be customized to anything.
I'll try to do this.

Kenji
> > > > > > > > > thehttp://elrte.org/demoandtheproblemdidn'texistthere. Does

António Ramos

unread,
Sep 4, 2011, 7:01:53 AM9/4/11
to web...@googlegroups.com
Thank you.
I realy need your plugin ASAP but with the option to attach multiple pdf or doc files.



2011/9/4 kenji4569 <hos...@s-cubism.jp>

tomt

unread,
Sep 4, 2011, 5:08:22 PM9/4/11
to web2py-users
Thanks for you quick response. Your suggestion worked as desired.

kenji4569

unread,
Sep 6, 2011, 3:29:11 AM9/6/11
to web2py-users
Hi António,

I implemented a file chooser for the elrte widget.
Please try it:
http://dev.s-cubism.com/plugin_elrte_widget

Since the file chooser is very primitive, you may need to customize
it.
But, the customization would be easy with the expressive power of
web2py (see the demo code).
(Notice: I applied a small patch for the original elrte.js to make the
file chooser available.)

Thanks again for your valuable feedback,
Kenji

António Ramos

unread,
Sep 6, 2011, 5:01:04 AM9/6/11
to web...@googlegroups.com
Hello Kenji,
Thank you for your fast work

One problem!
The form is not very friendly.

In the submit form i choose a pdf for example myfile.pdf but in the name field you write the name that web2py gives the file in the download directory for example  5e74c950-95b2-4843-b4c6-53bc8efca8fe
This has no meaning to the user!

Please see attached file for what i think it would be really helpfull.

Thank you again

António

2011/9/6 kenji4569 <hos...@s-cubism.jp>
example1.jpg

kenji4569

unread,
Sep 6, 2011, 10:18:08 AM9/6/11
to web2py-users
> web2py gives the file in the download
> directory for example
> 5e74c950-95b2-4843-b4c6-53bc8efca8fe</plugin_elrte_widget/download/plugin_e
> lrte_widget_file.file.9a877c8c8c9d285c.4361726f6c696e61323031305f612e646f63 .doc>
The former random string is a display file name, and just for demo.
The latter one is an actual file name generated by web2py.

Now, I remove the former, since it's confusing:
http://dev.s-cubism.com/plugin_elrte_widget

Changing the latter would require much work with deeper inspection
into the web2py upload mechanism.

Changing the look and feel such as replacing icons would be easier,
and you should see the file_upload_or_choose() function in the usage
code of the demo.

Note that I do not implement a ready-made image/file chooser, and you
have to implement it for your own application, starting from the usage
code, including setting up your db and defining your image and file
tables.

Regards,
Kenji


On 9月6日, 午後6:01, António Ramos <ramstei...@gmail.com> wrote:
> Hello Kenji,
> Thank you for your fast work
>
> One problem!
> The form is not very friendly.
>
> In the submit form i choose a pdf for example myfile.pdf but in the name
> field you write the name that web2py gives the file in the download
> directory for example
> 5e74c950-95b2-4843-b4c6-53bc8efca8fe</plugin_elrte_widget/download/plugin_e lrte_widget_file.file.9a877c8c8c9d285c.4361726f6c696e61323031305f612e646f63 .doc>
>  example1.jpg
> 91K表示ダウンロード

António Ramos

unread,
Sep 6, 2011, 12:02:42 PM9/6/11
to web...@googlegroups.com

After i upload a file i get a icon in the text.
How do i lauch the file that i just embedded in the text?

Thank you



2011/9/6 kenji4569 <hos...@s-cubism.jp>

kenji4569

unread,
Sep 6, 2011, 8:59:13 PM9/6/11
to web2py-users
> After i upload a file i get a icon in the text.
> How do i lauch the file that i just embedded in the text?
The elrte editor prevents the icon link from clicking to download the
file.
So you have to first submit the editing html,
and save the html in db,
and then display the html in the view (as {{=XML(record.text)}}).
But currently, the demo do not demonstrate this (so you need to
implement this on your app).
In the meantime, you can check the html source from the editor by
clicking the "source" tab at the bottom of the editor.

Kenji

Richard Vézina

unread,
Sep 7, 2011, 1:59:40 PM9/7/11
to web...@googlegroups.com
Hello Kenji,

You will maybe find the code of the actual datepicker here : http://www.dynarch.com/projects/calendar/

If you clic on the "?" when the datepicker popup you will have the disclaimer of the author of the plugin...

Richard

kenji4569

unread,
Sep 8, 2011, 5:53:28 AM9/8/11
to web2py-users
Thanks for the information. But it seems that I have to buy a licence
to get the full source code. I will look for other solutions.

Kenji
> ...
>
> もっと読む »

Richard

unread,
Apr 1, 2014, 6:19:22 AM4/1/14
to
Kenji,

I try to use the nice (modal) Dialog widget with a Web2py app. It starts but keeps ths status loading...

In the controller:
    dlg_add_role = DIALOG(LOAD(f='add_role', ajax=True), title='Add role', close_button='close', renderstyle=True)

    return dict(dlg_add_role=dlg_add_role,
                s1s=s1s, entities=entities, assets=assets, parents=parents, sip=sip,
                env_cat=env_cat, env_domains=env_domains,
                channels=channels, supply_channels=supply_channels, im_labels=im_labels,
                form_env=form_env, form_vpu=form_vpu,
                data_list = data_list,
                activities = activities,
                roles = roles,
                customers = customers
                )

def add_role():
    return DIV('OK!')



In the index.html view:
           .....
            </table>
                 {{=A('Add role', _href='#dlg_add_role', _onclick='%s;return false' % dlg_add_role.show())}}
            </div>
            ......

Any clu?
Thank you,
Richard D.

Richard Vézina

unread,
Apr 1, 2014, 9:50:30 AM4/1/14
to web2py-users
The thing with Modal from bootstrap is that the form are embeded at the same level, I mean they are both in the same page even if you build it with a component... The way to workaround this issue is to give a name to your form (form.process(formname=...).accepted:).

There is this ressource that can help :


Good luck.

Richard


On Tue, Apr 1, 2014 at 6:18 AM, Richard <richard....@planet.nl> wrote:
Kenji,

I try to use the nice (modal) Dialog widget with a Web2py app. It starts but keeps ths status loading...

In the controller:
    dlg_add_role = DIALOG(LOAD(f='add_role', ajax=True), title='Add role', close_button='close', renderstyle=True)

    return dict(dlg_add_role=dlg_add_role,
                s1s=s1s, entities=entities, assets=assets, parents=parents, sip=sip,
                env_cat=env_cat, env_domains=env_domains,
                channels=channels, supply_channels=supply_channels, im_labels=im_labels,
                form_env=form_env, form_vpu=form_vpu,
                data_list = data_list,
                activities = activities,
                roles = roles,
                customers = customers
                )

def add_role():
    return DIV('OK!')



In the index.html view:
           .....
            </table>
                 {{=A('Add role', _href='#dlg_add_role', _onclick='%s;return false' % dlg_add_role.show())}}
            </div>
            ......
On Thursday, September 8, 2011 11:53:28 AM UTC+2, kenji4569 wrote:

--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Rahul

unread,
Apr 2, 2014, 1:59:14 AM4/2/14
to web...@googlegroups.com
Hi Kenji,
        Thanks! for the wonderful widgets. I am already using a few in my web2py projects. They make my life simple.

Sincerely, Rahul D.

Dennis Jacobs

unread,
Nov 20, 2014, 9:11:15 AM11/20/14
to web...@googlegroups.com, dennis...@technicolor.com, dja...@jadeitgcv.be
Hi Kenji,

First of all I wanted to thank you for submitting and maintaining your web2py plugins.
However I do have one small issue with the “multiselect_widget”, which could be due to the fact that I don’t know how to implement the plugin properly.

 

The problem I’m currently facing is the fact that I don’t know how to preselect values.

For instance, I’m trying to create a page where a user’s membership can be rectified.
The administrator first have to select a username (based on a dropdown from), afterwards the 2 boxes(“member of” and “Not member of”) should display the memberships of that specific user.

And this is the point where I’m stuck.
All the groups seem to end up in the same box, and I can’t figure out how to make the selection of “members” and “nomembers”.

And I just wanted to make sure that I’m not doing something wrong, and I’m not forgetting something.

The line I currently have to create this widget is the following.
The grouplist is actualy a list of the "db.auth_group.role"-field.
form = SQLFORM.factory(Field("Members", type='list:reference(db.auth_group.role)', requires=IS_IN_SET(grouplist,multiple=True), widget =rhmultiselect_widget))

With kind regards,
Jacobs Dennis.


On Friday, August 26, 2011 6:35:40 PM UTC+2, kenji4569 wrote:
Hi, I've just published a collection of plugins which I'd created for
some web2py products (mainly cms sites) in my job:

The index page:
http://dev.s-cubism.com/web2py_plugins

The plugins are below:

[Form Widgets]
 Horizontal Radio Widget http://dev.s-cubism.com/plugin_hradio_widget
 Multiple Select Widget http://dev.s-cubism.com/plugin_multiselect_widget
 Suggest Widget http://dev.s-cubism.com/plugin_suggest_widget
 Lazy Options Widget http://dev.s-cubism.com/plugin_lazy_options_widget
 Anytime Widget http://dev.s-cubism.com/plugin_anytime_widget
 Color Widget http://dev.s-cubism.com/plugin_color_widget
 elRTE WYSIWYG Widget http://dev.s-cubism.com/plugin_elrte_widget
 Uploadify Widget http://dev.s-cubism.com/plugin_uploadify_widget

[Form Customize]
 Solid Form http://dev.s-cubism.com/plugin_solidform
 Not-Empty Marker http://dev.s-cubism.com/plugin_notemptymarker

[Table Customize]
 Solid Table http://dev.s-cubism.com/plugin_solidtable
 Pagenator http://dev.s-cubism.com/plugin_paginator
 Table Scope http://dev.s-cubism.com/plugin_tablescope
 Table Checkbox http://dev.s-cubism.com/plugin_tablecheckbox
 Table Permuter http://dev.s-cubism.com/plugin_tablepermuter

You can try demos, see souces, and download plugins (MIT Licence).
I'll appreciate your feedback and advises (especially for design
decisions).
I'll keep trying to create useful plugins and to improve them!

Richard Vézina

unread,
Nov 24, 2014, 10:01:42 AM11/24/14
to web2py-users
Hello Jacobs,

db.table.field.default = default

Don't work?

Richard

--

Dennis Jacobs

unread,
Nov 24, 2014, 10:48:14 AM11/24/14
to
Hi Richard,

First of all, thanks for your fast reply.
And I was able to implement this plugin by changing the line below.

form2 = SQLFORM.factory(Field("Members", type='list:reference(db.auth_group.role)', requires=IS_IN_SET(members,multiple=True), widget=rhmultiselect_widget))

With
db.auth_group.role.widget = rhmultiselect_widget
db
.auth_group.role.requires = [IS_IN_SET(grouplist, multiple=True)]
form2
= hmultiselect_widget(db.auth_group.role, members)

By doing this, i was able to show the "form/grid", and select the proper values.

However, i'm still having some problems with adding some additional actions to the "register" and "delete"-button.
Cause at this moment, the plugin just moves the string from box 'A' to box 'B' without any additional actions.
I assume this can be done by adding an URL()-call to the "onclick"-list.
But i'm not sure whether this is actualy the best approach for this. (Since i'm not very familier with jquery).
Am i still missing something?

With kind regards,
Jacobs Dennis.
Reply all
Reply to author
Forward
0 new messages