I applied the follwing validators for upload fields in version 1.91.6:
requires = [
IS_NULL_OR(IS_UPLOAD_FILENAME(extension='pdf')),
IS_NULL_OR(IS_LENGTH(1048576, 1024)),
]
Everything was fine until I used a SQLFORM object with an upload
keyword for editing.
Then, a delete checkbox of an
quot;
or
"[IS_NULL_OR(IS_XXX(..)), IS_NULL_OR(IS_YYY(..)), ..]"
(the first one)
What do you think?
Thanks in advance,
Kenji
On 1月12日, 午後10:57, Massimo Di Pierro
wrote:
> good catch. Let me think about this...
>
> On Jan 12, 1:12 am, kenji4569 wrote:
>
>
>
>
>
Thanks for your support! Maybe the adopted one is much consistent.
On 1月18日, 午前1:21, Massimo Di Pierro
wrote:
> "IS_NULL_OR([IS_XXX(..), IS_YYY(..), ..])"
>
> in trunk now. Good suggestion although I think an internal refactoring
> is in order.
>
> On Jan 16
I am developing a website with many features required my client, using
web2py.
So, I'd also like to see the best practice for modular site
development.
In my development, I made two applications for a website,
one is for front, and the other is for admin site.
And I think it worked well,
though ob
I am developing a website with many features required my client, using
web2py. So, I'd also like to see the best practice for modular site
development.
In my development, I made two applications for a website, one is for
front, and the other is for admin site. And I think it worked well,
though ob
I met the same issue, and took the following approach:
- Create a centralized plugin app
For me, this is the following app:
https://github.com/sqlabs/sqlabs/tree/master/modules
- Reference the modules of the app from other apps like:
import applications.sqlabls.modules.plugin_color_widget
In thi
I'm sorry I couldn't guess what's happened inside. At least for me, I
haven't encountered that problem. Could you inspect more details for that
(by such as pdb debugger). The process of the uploadify plugin is as
follows. First the client uploads a file via ajax using a flash and the
server sav
The direct submit command "$('.dialog-front').find('form').submit()"
still produces the same result. So the problem might be not the uploadify
widget but the form processing it self. Could you debug inside the
form.accepts method and check its passed variables such as request.vars and
session.
I think so, but I don't have any clue for this session problem..
2012年5月5日土曜日 19時58分19秒 UTC+9 CtrlSoft:
>
> on localhost works fine beacause, it is using the same session, but on
> server, when i acces page app creates one session and when i submit the
> upload form it creates another one sessio
Hi Jim,
In puling_suggest_widget, trigger events are invoked from a js file:
https://github.com/sqlabs/sqlabs/blob/master/static/plugin_suggest_widget/suggest.js
by
$input.trigger($input.attr('id') + '__unselected');
$input.trigger($input.attr('id') + '__selected', [val]);
methods.
To setup your t
Hi Johann,
I've just investigated the problem.
Do you use virtual fields for computing the article_eq and ltitle?
If so, SOLIDFORM as well as SQLFORM need to know the filed properties
of the virtual fields, such as labels and representation. Then, one
solution would be to define a "virtual table"
Thanks for your details.
I found a bug in the plugin, which occurs when using fields with hide
properties such as readonly. Then I fixed the bug. Could you test the
new version of the plugin?: http://dev.s-cubism.com/plugin_solidform
Regards,
Kenji
On 12月19日, 午後5:51, Johann Spies wrote:
> Dear
Thanks for your feedback. I'm relieved:)
On 12月20日, 午後5:15, Johann Spies wrote:
> Dear Kenji,
>
> The form is working now without the previous problems. Thank you very much
> for making life easier for us!
>
> Regards
> Johann
> --
> Because experiencing your loyal love is better than life itsel
Hi all, I and Yusuke Kishita had developed jsTree and MPTT plugins
which manages tree structured data, and now published them on our
web2py plugin site with demos and codes:
[jsTree Plugin]
http://dev.s-cubism.com/plugin_jstree
[MPTT Plugin]
http://dev.s-cubism.com/plugin_mptt
The MPTT plugi
> after installing and navigating to myapp/plugin_jstree I got this
> errorinvalid> view (plugin_jstree/index.html)Sorry, I should have noted that
> the plugin requires "response.generic_patterns = ['*']" (See db.py in
> "welcome" application of the latest version of web2py) to show the demo. (A
> after installing and navigating to myapp/plugin_jstree I got this
> errorinvalid> view (plugin_jstree/index.html)
Sorry, I should have noted that the plugin requires
"response.generic_patterns = ['*']" (See db.py in "welcome"
application of the latest version of web2py) to show the demo. (And
Congratulations!
On 1月10日, 午前7:24, Niphlod wrote:
> kudos to all devs. I'm happy to be a web2py user for the last couple
> of years.
>How do I get javascript in a component plugin to execute each time after the
>component >is loaded so the javascript is applied to the loaded component
>elements?
I'd encountered the similar problem and discussed before:
http://groups.google.com/group/web2py-developers/browse_thread/thread/fe6
I made a similar plugin before, and now uploaded it to my plugin site:
http://dev.s-cubism.com/plugin_rating_widget
The plugin provide a form widget to generate the rating chooser.
Just give it a try.
(Note that the plugin has some boilerplate codes for dealing with ajax
form and for custom
Thanks for your blog post!
On 1月14日, 午前3:55, Omi Chiba wrote:
> It easy to use and works great !!
>
> Here's my blog
> posthttp://ochiba77.blogspot.com/2012/01/web2py-plugin-rating-widget.html
>
> On Jan 12, 7:08 pm, kenji4569 wrote:
>
>
>
>
>
>
>
I use gluon.scheduler to import large csv files for production
environment, and execute db.commit() by 100 records in the task. This
works well for me.
Kenji
On 2月14日, 午後4:34, Johann Spies wrote:
> On 14 February 2012 00:54, Omi Chiba wrote:
>
> > I have a problem with the performance of CSV im
@ Niphlod: The situation for me is that non-programmer operators
upload 10,000-100,000 product records mainly for inventory updates via
an admin interface. It's not so huge but large enoght to exceed a
server resposne time limit. The upload is not a bulk copy operation,
but insert/update operations
nce 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
>
>
>
>
>
>
>
> On Thu, Sep 1, 2011 at
>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)
On 9月4日, 午後12:38, tomt wrote:
> Kenji,
>
> T
l try to do this.
Kenji
On 9月4日, 午後6:02, António Ramos wrote:
> 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 kenji456
;
> 2011/9/4 kenji4569
>
>
>
>
>
>
>
> > >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
y gives the file in the download
> directory for example
> 5e74c950-95b2-4843-b4c6-53bc8efca8fe lrte_widget_file.file.9a877c8c8c9d285c.4361726f6c696e61323031305f612e646f63
> .doc>
> This has no meaning to the user!
>
> Please see attached file for what i think it would be really
wrote:
> 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
>
>
>
>
>
>
>
> > > web2py gives the file in the download
> > > directory for exa
com/projects/calendar/
>
> If you clic on the "?" when the datepicker popup you will have the
> disclaimer of the author of the plugin...
>
> Richard
>
>
>
>
>
>
>
> On Tue, Sep 6, 2011 at 8:59 PM, kenji4569 wrote:
> > > After i upload a fi
How about this one?
http://dev.s-cubism.com/plugin_tight_input_widget
This is a size-adjusted input widget with such right aligned text. I'v
used this widget in one of my products (I rewrote it for the plugin
just now).
The size of the widget is automatically adjusted to maximum length of
the fi
I met exactly the same problem. My browser is set with Japanese and
has nothing to do with French settings.
Regards,
Kenji
On 9月15日, 午後7:10, guruyaya wrote:
> I think your browser is set with french by default. Look into your
> browser settings.
>
> On Sep 15, 11:08 am, Zhe Li wrote:
>
>
>
>
>
Maybe you should replace
Field('doc_nr',suggest_widget(db.akb_doccenter.doc_nr
with
Field('doc_nr', widget=suggest_widget(db.akb_doccenter.doc_nr
as the traceback indicates.
Regards,
Kenji
On 9月22日, 午後7:16, Johann Spies wrote:
> As the standard Web2py autocomplete widget does not play nicely wit
That's strange..
Which browser do you use?
Are you sure you did select an element inside the select box by
clicking or keypress?
If you select the element, the input box should change the color from
pink to cyan.
The form vars record indicates you didn't select any element from the
select box.
Ken
our application, or occurs for both my demo site and your
application?
Kenji
On 9月22日, 午後9:44, Johann Spies wrote:
> On 22 September 2011 14:38, kenji4569 wrote:
>
> > That's strange..
> > Which browser do you use?
>
> I have tested this on Iceweasel (Firefox) on Debian as we
Johann,
I found that the autocomplete widget overridden the suggest widget in
your attached screenshot.
So, you might define both autocomplete widget and suggest widget for a
single field.
Since these widgets process callbacks even if they are just
initialized and not used,
the suggest widget is u
>When I put value into category it's not
>always update the color field dropbox or it takes quite some time when it
>works
It might be... due to intercontinental communication.
One solution could be to add ajax progress bar for the application,
but it's a little bit out of the plugin scope.
Regard
enji
On 9月23日, 午前12:58, Richard Vézina wrote:
> Does suggest_widget is essential to trigger lazy_option plugin?
>
> Richard
>
> On Thu, Sep 22, 2011 at 11:55 AM, Richard Vézina <
>
>
>
>
>
>
>
> ml.richard.vez...@gmail.com> wrote:
>
> > On Thu,
I am not sure about the version, but it seems OK.
However I see no other possible reason, so would you try to upgrade
the web2py version?
On 9月23日, 午前2:35, Richard Vézina wrote:
> I have 1.6.1 under web2py 1.98.2
>
>
>
>
>
>
>
> On Thu, Sep 22, 2011 at 1:31 PM, ke
Hi,
I am trying to develop a SNS site, and want to make it more
customizable and pluggable.
So I published some SNS plugins following Facebook:
[SNS-Plugins]
Comment Box http://dev.s-cubism.com/plugin_comment_box
Friendship http://dev.s-cubism.com/plugin_friendship
Messaging http://dev.s-cubism.c
Could you try the following plugin?http://dev.s-cubism.com/
plugin_suggest_widget
This is an alternative autocomplete widget that I developed, and could
handle unicode texts at least Japanese.
On 10月4日, 午後10:42, white fox wrote:
> hi, i use AutocompleteWidget for some of my field in db like this:
Could you try the following plugin?
http://dev.s-cubism.com/plugin_suggest_widget
This is an alternative autocomplete widget that I developed, and
could handle unicode texts at least Japanese.
On 10月4日, 午後10:42, white fox wrote:
> hi, i use AutocompleteWidget for some of my field in db like th
Could you try the following plugin?
http://dev.s-cubism.com/plugin_suggest_widget
This is an alternative autocomplete widget that I developed, and could
handle unicode texts at least Japanese.
On 10月4日, 午後10:42, white fox wrote:
> hi, i use AutocompleteWidget for some of my field in db like th
The behavior of the date picker seems to have changed from a certain
version.
For now, we should apply a patch to the anytime.js:
545 - this.showPkr(null);event.preventDefault();},keyAhead:function()
545 + return;event.preventDefault();},keyAhead:function()
[for readable version (http://www.ama3
Massimo,
I sent a patch with two more minor updates.
On 10月11日, 午前3:17, Massimo Di Pierro
wrote:
> Can you please email me the patch?
>
> On Oct 10, 11:35 am, kenji4569 wrote:
>
>
>
>
>
>
>
> > The behavior of the date picker seems to have changed from a ce
I cannot help presenting my developing plugin, which has a concrete5-
like wysiwyg functionality:
http://dev.s-cubism.com/plugin_managed_html/page1/_managed_html_edit(note:
use chrome or FF)
In this page, you can click highlighed blocks and edit their texts,
images, and htmls, and move specified bl
I cannot help presenting my developing plugin, which has a concrete5-
like wysiwyg functionality:
http://dev.s-cubism.com/plugin_managed_html/page1/_managed_html_edit
(note: use chrome or FF)
In this page, you can click highlighed blocks and edit their texts,
images, and htmls, and move specifi
> This is great. By the way,http://dev.s-cubism.com/mentions nanahoshi-cms
> as a web2py based CMS under development. How far along is that? Does
> it/will it use this plugin_managed_html?
>
> Anthony
>
>
>
>
>
>
>
> On Friday, November 11, 2011 8:23:24 AM UTC-5,
his is great. By the way,http://dev.s-cubism.com/mentions nanahoshi-cms
> as a web2py based CMS under development. How far along is that? Does
> it/will it use this plugin_managed_html?
>
> Anthony
>
>
>
>
>
>
>
> On Friday, November 11, 2011 8:23:24 AM U
the service since it is linked by the
> wizard.
>
> Massimo
>
> On Nov 11, 8:20 am, kenji4569 wrote:
>
>
>
>
>
>
>
> > Anthony
>
> > Thank you for your response.
>
> > >How far along is that? Does it/will it use this plugin_managed_html
> I think you should host the plugins at your site and if you can provide a>
> .json for accessing the plugins information it will be included from your>
> index to web2pyslices in future.
Thanks for the information. I'm looking forward to the new site:)
Kenji
On 11月12日, 午後12:51, Bruno Rocha
I think there are two types of web applications; one is for admin-
site, and the other is for front-site. For admin-site, CPU-usage would
be relatively not so critical, and rich man's programming (fat models
in web2py) could be allowed. Front-site, on the other hand, needs
optimization as far as po
When I run the following code:
db(db.xxx.id==1).select(cache=(cache.memcache, 5))
I got MemcachedKeyLengthError: Key length is > 250.
Since xxx table has many fields, the sql used for the key readily
reached the limit.
I just want to specify the cache key, but I couldn't, given the
dal.py:
(ca
Thanks! That's the right way. It worked.
On 2月1日, 午後11:37, Massimo Di Pierro
wrote:
> I think have a solution in trunk. You will not need to specify length
> and should work.
>
> On Jan 31, 8:40 pm, kenji4569 wrote:
>
> > When I run the following code:
>
>
What about this?
(modules/mymodule.py)
def main(environment):
environment = Storage(environment)
cache = environment.cache
@cache('xxx', time_expire=1, cache_model=cache.ram)
def xxx():
return 'xxx'
return Storage(locals())
(in models or controllers)
local_import('my
Other alternatives might be:
Field('name', **Field.readonly)?
Field('name').readonly()?
though I appreciate explicit is better than implicit.
On 3月6日, 午前9:49, Michele Comitini wrote:
> +1
>
> 2011/3/6 Thadeus Burgess :
>
>
>
>
>
>
>
> > Explicit is better than implicit. Typing is cheap. Design
I have had trouble with 1.94.4 as follows:
- Start the develop server of the web2py
- Browse the admin application site
- Log-in the site
- Click to a link of my application site (which uses a database
session)
- browse the admin application site again
- Then, cannot log-in the site because someho
I have had trouble with 1.94.4 as follows:
- Start the develop server of the web2py
- Browse the admin application site
- Log-in the site
- Click a link to my application site (which uses a database
session)
- browse the admin application site again
- Then, cannot log-in the site because somehow th
ted. I use CentOS 5.4 with Python 2.6.
On 3月18日, 午後9:23, Massimo Di Pierro
wrote:
> Are other people having the same problem? Are you sure it is with
> 1.94.4. Can you try delete all sessions files?
>
> On Mar 18, 5:59 am, kenji4569 wrote:
>
>
>
>
>
>
>
&g
session.connect(request, response, masterapp=masterapp, db=db)
where masterapp is my application name, and use the method in a module
file.
On 3月19日, 午前12:57, Massimo Di Pierro
wrote:
> Can you show the complete session.connect(...) statement?
>
> On Mar 18, 10:53 am, kenji45
> If it's in a module (vs model) file, where are you invoking it from?
I define it in a helper function of a module file, and invoke the
function in a model file.
On 3月19日, 午前1:13, Jonathan Lundell wrote:
> On Mar 18, 2011, at 9:01 AM, kenji4569 wrote:
>
>
>
> > session
The problem is now resolved.
Thank you for your quick response.
Kenji
On 3月19日, 午前5:28, Massimo Di Pierro
wrote:
> I apologize, the 1.94.1-4 has had problems with sessions because of
> recent major refactoring. The latest reported here:
>
> http://groups.google.com/group/web2py/msg/59f3716c4dcbd
The virtualfields functionality with join query dosen't work in 1.94.6
while it works in 1.94.5, as follows:
>>> t1 = db.define_table('t1', Field('val', 'integer'))
>>> t2 = db.define_table('t2', Field('t1', db.t1), Field('val', 'integer'))
>>> class VirtualFields(object):
... def val2(sel
>Are you sure this exact code worked before?
Yes. I checked it again.
In fact, the issue just occurred when I upgraded from 1.94.5 to
1.94.6.
On 3月28日, 午後11:34, Massimo Di Pierro
wrote:
> Are you sure this exact code worked before?
>
> On Mar 28, 4:51 am, kenji4569 wrote:
>
>
OK, thanks. Now, it passed brief tests of my project.
On 3月31日, 午前5:18, Massimo Di Pierro
wrote:
> I think this is not fixed. Can you please check it in trunk. If not
> please open a googlecode issue
>
> On Mar 28, 4:51 am, kenji4569 wrote:
>
>
>
>
>
>
>
> &g
Hi Massimo,
the site is recently developed by a member of web2py-japan, Nakagaki-
san. The book translation and any information of web2py are written
and published here, by members of web2py-japan. The translation is
still in progress, and will be feedbacked to you when finished. Thanks
for your m
ranslation language on web2py default?
> it's just a suggestion.
>
> thanks
>
>
>
>
>
>
>
> On Mon, May 16, 2011 at 8:04 AM, kenji4569 wrote:
> > Hi Massimo,
>
> > the site is recently developed by a member of web2py-japan, Nakagaki-
>
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 Se
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
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]
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 wrote:
> Hi,
>
> Thanks for the great contributions to web2py. I'm looking forward to
> t
>
> 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 e
>
>
>
>
>
>
> On Tue, Aug 30, 2011 at 9:47 PM, kenji4569 wrote:
> > > 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 f
72 matches
Mail list logo