[web2py] Slider example

2022-08-30 Thread Kenneth
Hello everybody, does anyone have an example on creating a form with sliders. Selecting a value of lets say 1-10. I tried using the example on web2pyslices but can't get it working. Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com

[web2py] Re: What happened to web2pyslices.com

2022-08-29 Thread Kenneth
I think this is the same: http://web2pyslices.pythonanywhere.com/home torsdag 18 augusti 2022 kl. 05:10:15 UTC+3 skrev JPlata: > Is there a mirror or archive lying around? > -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source

[web2py] Google Maps API

2022-03-11 Thread Kenneth
Hello, has anybody used Google Maps after 2018, looks like you need an api key to use the geocode function. Geocode doesn't seam to be updated for this? Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Login via an link/URL

2020-11-17 Thread Kenneth
. The link would look like something like this: my.website.com/longhash4324kljhasdfasd9f87ads Does web2py already contain this function? Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p

[web2py] Using the T function

2020-08-02 Thread Kenneth
don't rememver having to activate the T-function anywhere. Kenneth -- 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

[web2py] Re: Insert not inserting data

2018-04-28 Thread Kenneth
Den torsdag 26 april 2018 kl. 17:32:56 UTC+3 skrev Anthony: > > On Thursday, April 26, 2018 at 4:07:31 AM UTC-4, Kenneth wrote: >> >> Hi, >> >> correct, no records 24031-24040. I was thinking that my variables maybe >> would have contained something not a

[web2py] Re: Insert not inserting data

2018-04-26 Thread Kenneth
roolbacks in the code as I didn't know there was anything like that. Kenneth Den onsdag 25 april 2018 kl. 17:54:07 UTC+3 skrev Anthony: > > On Tuesday, April 24, 2018 at 4:20:18 PM UTC-4, Kenneth wrote: >> >> The function that contains this does a lot of things, but nothing

[web2py] Re: Insert not inserting data

2018-04-24 Thread Kenneth
the controller 10 times and look at the table again, still highest record is 24030. If I at this moment insert a record manually from MySQL prompt it'll get ID, 24041. Kenneth Den tisdag 24 april 2018 kl. 04:16:34 UTC+3 skrev Anthony: > > Can we get more context? What does the real cod

[web2py] Re: Insert not inserting data

2018-04-23 Thread Kenneth
in the db.commit() without success. Kenneth Den måndag 23 april 2018 kl. 19:26:09 UTC+3 skrev Leonel Câmara: > > If you put it into a controller web2py automatically commits the > transaction. If you're doing this from the command line you need to to > db.commit() > -- Re

[web2py] Insert not inserting data

2018-04-22 Thread Kenneth
('2018-04-23 01:51:34.001992',15,6728,2); this is in a normal controller. If I put the same tracker = db.usage_tracker.insert(client = 6728, product_group = 2, product = 15) in an own function in controller it works. Kenneth -- Resources: - http://web2py.com - http://web2py.com/book

Re: [web2py] Re: Apache + multidomain + SSL

2018-01-09 Thread Kenneth
Hi, I have a server running two versions of web2py. The other one runs 4-5 apps on own domains. Every domain will have it's own certificate. I have I one almost running correctly, the app works nicely but you can't open error tickets. But I'm not sure how to add more certificates. Kenneth

[web2py] Apache + multidomain + SSL

2018-01-03 Thread Kenneth
Hello, does anybody have experience with setting up Apache with separate certificate for multi domains. I have it working like 95% but something is strange, I can't for example look at errors with this setup. Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation

[web2py] How do I run the web2py scheduler under the models directory

2017-04-24 Thread Kenneth Ban
ame nature (i.e. period=3600, repeats=0). How do I run the set up once so that I will only get a single repeating task queued in the web2py scheduler. Thanks in advance for any help! Cheers, Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.

Re: [web2py] Upgraded OS, now IS_IN_SET now working

2017-04-04 Thread Kenneth
I changed the {} to [] and it seams to be working now. Interesting. Kenneth Den tisdag 4 april 2017 kl. 16:28:49 UTC+3 skrev Kenneth: > > Hi, > > I found a list of packages that was updated yesterday when I updated the > server and python 2.6 was updated to newest 2.6 versio

Re: [web2py] Upgraded OS, now IS_IN_SET now working

2017-04-04 Thread Kenneth
Hi, I found a list of packages that was updated yesterday when I updated the server and python 2.6 was updated to newest 2.6 version, I'm guessing this is the reason why I'm getting the errors right now. But I don't understand why I'm getting errors. Kenneth Den tisdag 4 april 2017 kl. 16

Re: [web2py] Upgraded OS, now IS_IN_SET now working

2017-04-04 Thread Kenneth
uires=IS_IN_SET({T('Get access')})), ^ SyntaxError: invalid syntax Kenneth Den tisdag 4 april 2017 kl. 15:10:26 UTC+3 skrev Anthony: > > On Tuesday, April 4, 2017 at 7:05:25 AM UTC-4, Áure

[web2py] Upgraded OS, now IS_IN_SET now working

2017-04-04 Thread Kenneth
the app works. web2py was neither updated. This is the row that gives error: Field('accept_terms', widget=SQLFORM.widgets.checkboxes.widget, requires=IS_IN_SET({'Only one option '})), And error is: SyntaxError: invalid syntax Anyone had problems like this? Kenneth -- Resources: - http

[web2py] Updating log on mobile device

2016-12-29 Thread Kenneth
smartphone/pads so loading the whole page feels like a waste of bandwidth. Kenneth -- 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

[web2py] Do not show None

2016-07-08 Thread Kenneth
Hello, I fetch a number on records from the database and show it on the screen. Is there a way to not print the text None for fields that are in the state None. I could use if field != None but I'd rather not use IF if there is an other way. Kenneth -- Resources: - http://web2py.com

[web2py] Re: JS: very small but very useful

2016-05-07 Thread Kenneth
Could you provide any cases to use this JS function for? On Friday, May 6, 2016 at 11:26:43 AM UTC-4, Val K wrote: > > Very small py-function that wraps any js-content in anonymous js-function > > def JS_fun(*args_lst): > def _inner(body): > return "(function(%s){ %s ;})" %

[web2py] Re: Installing custom modules on a Web2py-friendly VPS (e.g. DigitalOcean, Linode)?

2016-05-07 Thread Kenneth
You can treat DigitalOcean or Linode as complete linux server to play around with. You can install any Python modules with PIP install module_name. On Saturday, May 7, 2016 at 11:50:12 AM UTC-4, Marty Jones wrote: > > I know this isn't a Web2py specific question but hope some of you will >

[web2py] Re: Enabling Unicode characters in URL

2016-05-06 Thread Kenneth
/%E4%B8%8E> . request.args won't be usable for > the aforementioned "bug" (or lack of feature), but request.raw_args will be > there for you to parse as you wish > > On Friday, May 6, 2016 at 3:02:02 AM UTC+2, Kenneth wrote: >> >> Just filed an issue. thank you, Leo

[web2py] Re: Enabling Unicode characters in URL

2016-05-06 Thread Kenneth
lcome/default/index/ > 与 <http://localhost:8080/%E4%B8%8E> . request.args won't be usable for > the aforementioned "bug" (or lack of feature), but request.raw_args will be > there for you to parse as you wish > > On Friday, May 6, 2016 at 3:02:02 AM UTC+2, Kenneth

[web2py] Re: Enabling Unicode characters in URL

2016-05-05 Thread Kenneth
Just filed an issue. thank you, Leonel. Is there any interim solution to this problem? On Wednesday, May 4, 2016 at 2:31:17 PM UTC-4, Leonel Câmara wrote: > > For functions, specially since in python 2 the identifiers must be ascii. > If percent encoded args don't work then that's actually a

[web2py] Re: Enabling Unicode characters in URL

2016-05-04 Thread Kenneth
Hi Niphld, Do I need to configure "routes.py" to accept percent-encoded function? is it "args_match" that I need to configure? Just tried to pass encoded string "%ED%95%9C%EA%B8%80" as argument, I am getting "Invalid request". Thank you. On Wednesday, May 4, 2016 at 8:09:22 AM UTC-4,

[web2py] Re: Enabling Unicode characters in URL

2016-05-03 Thread Kenneth
Hi Leonel, Thank you for your quick reply. If that is the case, is it possible to encode the unicode URLs right after it hits the server? So, it can be redirected to proper URL after the incoming url is encoded in percent. Best, On Tuesday, May 3, 2016 at 10:15:36 PM UTC-4, Leonel Câmara

[web2py] Enabling Unicode characters in URL

2016-05-03 Thread Kenneth
Hello there, I'd like to create URLs in unicode characters and I get "Invalid Request" error when I do. I tried to reconfigure on Nginx side but wasn't able to work it properly. For example, this curl call will output "Invalid Request". curl http://localhost:8080/与 Grateful if there is a

Re: [web2py] Re: How to find the entry in a table with the highest ID

2016-04-17 Thread Kenneth
Hi Richard, Quick question on your reply, how do you use ** as prefix of form.vars? I've seen it in the book but never knew what it was for. Ken On Saturday, April 16, 2016 at 12:09:39 PM UTC-4, Richard wrote: > > Hello Jack, > > You mean you want to pass the id of the inserted record to

[web2py] (Apache + modwsgi) redirect non-www to www using htaccess or virtual directory?

2016-04-08 Thread Kenneth
Hello I've been trying to redirect non-www to www using htaccess but I was able to redirect only one domain when there are multiple applications/domains in applications directory. Is there anyone who was able to redirect non-www to www successfully? I wasn't able to find one correct solution

[web2py] Re: Handling JSON stream

2016-02-21 Thread Kenneth
. But maybe that is the only way of doing it. Kenneth Den söndag 21 februari 2016 kl. 15:59:23 UTC+2 skrev Val K: > > Maybe I mistake, but JSON means arrays ([1,2, "any string", 5]) , hashes > ({"a":1, "b":"any string"}) and combinations

[web2py] Re: Handling JSON stream

2016-02-21 Thread Kenneth
Hi, I don't access to change the webform, so I need to get by what I receive. It is a standard webform in Drupal that sends the JSON. Kenneth Den söndag 21 februari 2016 kl. 13:01:40 UTC+2 skrev Val K: > > How do you serialize form? > Jquery.param makes json in extended format b

[web2py] Handling JSON stream

2016-02-21 Thread Kenneth
Hello, I have an external webform sending data as a JSON to my web2py app. {"product_package":"basic_m","products":"31349","billing_name":"Kenneth","billing_surname":"Lundstr\u00f6m","e_mail":"k

[web2py] How to move a set of view,edit,delete buttons from last column to first column on SQLgrid?

2015-05-12 Thread Kenneth
Hello, Lately, I've started playing with sqlgrid since it saves so much time pulling out all data in a page. The problem is that I have a table with 20 attirbutes saved in it, it's hard to scroll to the end of right side and click on view/edit buttons. Is there any way to move those buttons

[web2py] Re: how does search work on sql grid? (search over a whole table instead of a field)

2015-05-10 Thread Kenneth
, May 10, 2015 at 12:55:30 AM UTC-4, Anthony wrote: See https://groups.google.com/d/msg/web2py/WvGH9XAH160/TjzYVCDBzQ0J Anthony On Saturday, May 9, 2015 at 9:57:03 PM UTC-4, Kenneth wrote: I am curious how I can implement the search widget used on sql grid. It seems to me that sql grid

[web2py] Re: how does search work on sql grid? (search over a whole table instead of a field)

2015-05-10 Thread Kenneth
: Sorry, you said you want to search a keyword on a table instead of selecting fields? Perhaps you can clarify what you are trying to achieve. Anthony On Sunday, May 10, 2015 at 11:07:49 PM UTC-4, Kenneth wrote: Hi Anthony, Thank you for your reply as always. I believe the forwarded post

[web2py] Re: Prince - Print Python Html to PDF

2015-05-09 Thread Kenneth
You can check out this post. https://groups.google.com/forum/?fromgroups#!topic/web2py/B21c-PgscJg On Monday, April 20, 2015 at 3:52:10 PM UTC-4, Ovidio Marinho wrote: Has anyone tried to use it with web2py? http://www.princexml.com/doc/9.0/python/ [image:

[web2py] Re: Tutorial: Populating a Handsontable Grid using web2py

2015-05-09 Thread Kenneth
Look great, Tom. Thank you for sharing. I wonder what we can implement with this instead of CRUD. On Thursday, April 9, 2015 at 11:49:02 PM UTC-4, Tom Campbell wrote: Niphlod helped me with some crucial code getting Handsontable to work with web2py so I wrote this: web2py Handsontable

[web2py] Re: instagram login

2015-05-09 Thread Kenneth
This is what I've added on db.py. Hope this helps. == from instagram.client import InstagramAPI access_token = access_token client_secret= client_secret client_id = client_id redirect_uri = redirect_uri auth = Auth(db) auth_table = db.define_table(

[web2py] how does search work on sql grid? (search over a whole table instead of a field)

2015-05-09 Thread Kenneth
I am curious how I can implement the search widget used on sql grid. It seems to me that sql grid searche widget searches a keword over a whole table and show the result. Can anyone tell me how to create a search widget to search a keyword on a table instead of selecting fields? Thank you.

[web2py] Search in web2py book case sensitive

2015-03-19 Thread Kenneth
Hello, is the search function in web2py Book supposed to be case sensitive? I went to the online book and typed sqlform in the search field. Was a little bit surprised when I got: No results for sqlform Searching for SQLFORM works. Kenneth -- Resources: - http://web2py.com - http

[web2py] .decode('utf-8') on a string containg €

2015-03-09 Thread Kenneth
Hello, is there a way to do a decode('utf-8') on a string containg for example the € sign? Kenneth -- 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

[web2py] Different template in the same PDF file

2015-03-09 Thread Kenneth
creating PDF:s with pyfpdf. Kenneth -- 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

[web2py] Re: Using CAS for non web2py apps

2015-03-02 Thread Kenneth
Hi, after reading the web2py book and some testing it starts to look like this is not possible. The Drupal installation will be on a different server Kenneth Den torsdag 26 februari 2015 kl. 11:15:58 UTC+2 skrev Kenneth: Hello, I'm trying to get an Drupal with the Drupal CAS module

[web2py] Using CAS for non web2py apps

2015-02-26 Thread Kenneth
parameters to Drupal? Kenneth -- 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] Re: Integrating web2py and a CMS

2015-02-25 Thread Kenneth
Hi, finally getting around doing this. I have a Drupal site with a CAS module installed. Anyone done this before? Kenneth Den lördag 15 januari 2011 kl. 17:49:46 UTC+2 skrev Massimo Di Pierro: It can. http://web2py.com/cas On Jan 15, 9:13 am, David Bain pigeonfli...@gmail.com wrote

[web2py] Re: Not in touch with web2py community for a while. anything new interesting?

2014-12-22 Thread Kenneth
I think PyNuke is the latest CMS based on Web2py. On Tuesday, December 2, 2014 1:07:48 PM UTC-5, Phyo Arkar wrote: Being busy and i lost touch with w2p community for a while. What are the new features of web2py? What are the most actively maintainted web2py community projects ?

[web2py] Re: Apsis Pro

2014-10-14 Thread Kenneth
Hello, do you mean using Apsis Pro? I have now idea, just integrating it, someobody else pays for it :=) Kenneth Den fredagen den 10:e oktober 2014 kl. 01:25:52 UTC+3 skrev Carlos Zenteno: Looks good! Can you tell us more or less how much it cost? -- Resources: - http://web2py.com

[web2py] Apsis Pro

2014-10-09 Thread Kenneth
Hello, has anybody used Apsis Pro mailinglist/newsletter API integration with web2py. I'm trying to get started but running into all kinds of problems. Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code

[web2py] Re: Can't retrieve a picture for download function

2014-10-01 Thread Kenneth
2.5.1-stable Den onsdagen den 1:e oktober 2014 kl. 12:54:51 UTC+3 skrev Leonel Câmara: This error should never happen since that filename matches REGEX_UPLOAD_PATTERN, what version of web2py are you using? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) -

[web2py] Re: Can't retrieve a picture for download function

2014-10-01 Thread Kenneth
originally stored via a custom_store method? Anthony On Wednesday, October 1, 2014 12:27:46 AM UTC-4, Kenneth wrote: Hello, TAG.img(_height=50, _src=URL(r=request, c='default', f='download', args=[value])) gives me: type 'exceptions.TypeError' Can't retrieve product.image.4dfd23fe

[web2py] Can't retrieve a picture for download function

2014-09-30 Thread Kenneth
, migth be years. The product.image.4dfd23fe file does exist in uploads folder. Kenneth -- 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

[web2py] Login restricted based on subscription

2014-08-12 Thread Kenneth
Hello everyone, I'm building a site that clients subscribes to so I need to limit their login based on the subscription. Is there a built in feature to limit login to a date range? Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py

[web2py] Need to have def 4() and def dir() to 301 redirect. Is it possible?

2014-06-24 Thread Kenneth
I would like to redirect these two links: www.mydomain.com/4 and www.mydomain.com/dir for fixing backlinks I previously had for SEO purpose. I've tried to redirect from the controller but it didn't work. -- def 4(): redirect('/',301) def dir(): redirect('/',301) -- Obviously this is not possible

Re: [web2py] Do not mask password field

2014-06-14 Thread Kenneth
Thank you Marin, that did it. Rob, the form is for creating new users and client complains about not seeing the password. Kenneth Den lördagen den 14:e juni 2014 kl. 01:31:15 UTC+3 skrev Marin Pranjić: Can you try if this works? db.auth_user.password.type = 'string' On Sat, Jun 14

[web2py] orderby / case

2014-06-14 Thread Kenneth
/?fromgroups#!searchin/web2py/orderby$20$20case/web2py/B9iM-r1rV0A/jPMBmoSv2kgJ ) where CASE was used with orderby but I just couldn't understand how to get it working. Is this the way or is there an other way to do this? Kenneth -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: orderby / case

2014-06-14 Thread Kenneth
Hi, is it possible to merge two resultssets so I have only one resultssets. That way I would only need to add an extra query. Kenneth Den lördagen den 14:e juni 2014 kl. 16:53:09 UTC+3 skrev Niphlod: there's no simple way to do it. I'd suggest you fetch the first record, then every

[web2py] Do not mask password field

2014-06-13 Thread Kenneth
Hello, I'm pretty sure this is a stupid question but I just can't get it working. I have created a form to edit a user in auth_user, so one field is password. Is it possible in controller disable the masking of the values in the password, when entering a new password? Kenneth

[web2py] I am using Haystack module created by Massimo, does it support insertorupdate?

2014-05-27 Thread Kenneth
I see that it updates indexes when it updates,deletes or insert. Does it refresh indexes when I use insertorupdate on DAL? Thank you! -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Fill out a webform and process the result

2014-05-01 Thread Kenneth
, 'ContentPlaceHolder_Hae') id=_ctl0 Any ideas where to start? Kenneth -- 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

[web2py] T when sending email

2014-04-16 Thread Kenneth
Hello, I'm trying to send email that is made from about 6-7 T('texts'). But newlines are not inserted into the emails. How should I do that? Kenneth -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https

[web2py] Re: T when sending email

2014-04-16 Thread Kenneth
Hello, text send.mail() Kenneth what format are you sending the emails ? text or html ? What's the used function to send the emails ? On Wednesday, April 16, 2014 2:20:02 PM UTC+2, Kenneth wrote: Hello, I'm trying to send email that is made from about 6-7 T('texts'). But newlines

[web2py] Multiple domains, one app

2014-04-06 Thread Kenneth
}} The same can be done for static folder. I'm I doing this too complicated? Kenneth -- 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

[web2py] Re: Multiple domains, one app

2014-04-06 Thread Kenneth
One row is missing in my message: response.view= domain_url + request.controller + '/' + request.function + '.html' I have it in models/db.py so it reflects on all controllers. Kenneth Den söndagen den 6:e april 2014 kl. 09:56:38 UTC+3 skrev Kenneth: Hello, is it possible to build

[web2py] I tried to implment Redis-queue by going over Bruno's slice and it is giving me an error.

2014-03-06 Thread Kenneth
I went over http://www.web2pyslices.com/slice/show/1579/web2py-and-redis-queue and seems like it's giving me an error when I tried to dequeue all the tasks which are sending emails --- 23:06:12 UnpickleError: (*'Could not unpickle.', ImportError('No module named

[web2py] Restricted access based on IP to video files

2014-02-27 Thread Kenneth
will be used. What built in videoplayers are you using to show videos? Kenneth -- 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

[web2py] iframe without iframe

2014-01-12 Thread Kenneth
Hello, is there a way of integration data from an web2py site into an other sites. Like many integrates Tvitter Tweedk onto theur website. I't like to use web2py to create a small page that is shown on another website, like iframe but without iframes. Any ideas for this? Kenneth

Re: [web2py] Re: Load content from a text file

2013-08-17 Thread Kenneth Lundström
the database, but this one special page will be just a blank page showing the content of the file if I can't find out how to reload just the part of the page that shows the text file. Was thinking using PHP to show that page. Kenneth Now many clients need to access this at one time

[web2py] Load content from a text file

2013-08-16 Thread Kenneth
them into an text file that the app reads. This shouldn't be too hard? Kenneth -- --- 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+unsubscr

[web2py] I just fresh installed web2py on ubuntu 12.04, cannot find modules?

2013-05-02 Thread Kenneth
This seems odd to me. I just moved my server and ran the ubuntu script to install web2py I cannot import simplejson for some reason. (I ran it on python -S web2py.py as well) anyone had this problem before? Let me know! Otherwise, I have to import directly from gluon. -- --- You received

[web2py] Re: I just fresh installed web2py on ubuntu 12.04, cannot find modules?

2013-05-02 Thread Kenneth
My ubuntu is Ubuntu 12.04 X64 Server On Thursday, May 2, 2013 8:08:31 PM UTC-5, Kenneth wrote: This seems odd to me. I just moved my server and ran the ubuntu script to install web2py I cannot import simplejson for some reason. (I ran it on python -S web2py.py as well) anyone had

[web2py] Re: I just fresh installed web2py on ubuntu 12.04, cannot find modules?

2013-05-02 Thread Kenneth
/custom_import.py, line 81, in custom_importer raise ImportError, 'Cannot import module %s' % str(e) ImportError: Cannot import module 'simplejson' On Thursday, May 2, 2013 8:08:31 PM UTC-5, Kenneth wrote: This seems odd to me. I just moved my server and ran the ubuntu script to install web2py I

[web2py] Re: Webfaction account with multiple apps under 1 web2py install

2013-05-01 Thread Kenneth
I am using the routers.domains method to routing the applications to domains, I have a problem that I can access to the applications which are not routed to the assigned domain. for example routers = dict( BASE = dict( domains = { 'domain1.com' : 'app1',

[web2py] Re: Webfaction account with multiple apps under 1 web2py install

2013-05-01 Thread Kenneth
'] ), ) Le mercredi 1 mai 2013 14:54:34 UTC+2, Kenneth a écrit : I am using the routers.domains method to routing the applications to domains, I have a problem that I can access to the applications which are not routed to the assigned domain. for example routers = dict( BASE = dict

[web2py] Re: Webfaction account with multiple apps under 1 web2py install

2013-05-01 Thread Kenneth
www.domain2.com redirects to app2 == OK *but* www.domain1.com/app2 redirects to app2, and I don't understand why... Le mercredi 1 mai 2013 15:54:08 UTC+2, Kenneth a écrit : Yeah. I follow the same pattern. Could you try to browse www.domain1.com/app2 to see if it doesn't direct to app2

[web2py] Re: Webfaction account with multiple apps under 1 web2py install

2013-05-01 Thread Kenneth
+1 !! On Wednesday, May 1, 2013 11:37:20 AM UTC-5, Loïc wrote: I would like to understand too... Maybe somebody else has an idea ? -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails

[web2py] Re: Upgrading to 2.4.2. breaks virtual field

2013-04-08 Thread Kenneth
Nobody has any pointers how to fix this? I'm using powertable plugin in my app and if possible don't want to replace it right now. Kenneth Den lördagen den 9:e mars 2013 kl. 21:11:20 UTC+2 skrev Kenneth: Hi, anybody have any ideas where to start solving this? Traceback 1. 2. 3. 4

Re: [web2py] Re: Upgrading to 2.4.2. breaks virtual field

2013-04-08 Thread Kenneth Lundström
Hello, have tested 2.4.2., 2.4.5 and today 2.4.6 and still receiving the same error. Kenneth you're still using 2.4.2 or upgraded to 2.4.6? There were some changes, including bug fixes from one to another... 2013/4/8 Kenneth kenneth.t.lundst...@gmail.com mailto:kenneth.t.lundst

[web2py] Re: Problems after upgrading from 1.98 to 2.42

2013-03-19 Thread Kenneth
Hello, upgrading didn't in this case, still getting the same error. Kenneth Den tisdagen den 19:e mars 2013 kl. 04:11:59 UTC skrev Massimo Di Pierro: Please try 2.4.5. Let us know if this is not fixed alreday. On Monday, 18 March 2013 19:42:38 UTC-5, Kenneth wrote: Hello, I'm getting

[web2py] Problems after upgrading from 1.98 to 2.42

2013-03-18 Thread Kenneth
/ticket/phvk/217.152.236.190.2013-03-18.15-47-53.11d8d47e-f481-432b-92b2-532afef1692c# type 'exceptions.AttributeError'('Row' object has no attribute 'copy') Where should I start looking for the error? Kenneth -- --- You received this message because you are subscribed to the Google

[web2py] Re: Upgrading to 2.4.2. breaks virtual field

2013-03-09 Thread Kenneth
# type 'exceptions.AttributeError'('DAL' object has no attribute 'virtual') Den tisdagen den 5:e mars 2013 kl. 20:47:19 UTC+2 skrev Kenneth: Hi, I usually find what row causes the problem but not in this case. I'm using the plugin_PowerGrid. Anyone using PowerGrid with the new web2py

[web2py] Upgrading to 2.4.2. breaks virtual field

2013-03-05 Thread Kenneth
to fix? Kenneth -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups

[web2py] Re: Upgrading to 2.4.2. breaks virtual field

2013-03-05 Thread Kenneth
Hi, I usually find what row causes the problem but not in this case. I'm using the plugin_PowerGrid. Anyone using PowerGrid with the new web2py version? Kenneth maybe showing what line of your code raised the Exception will help... On Tuesday, March 5, 2013 5:51:57 PM UTC+1, Kenneth

[web2py] DAL/SQL question

2013-03-04 Thread Kenneth
is this written in DAL? Kenneth -- --- 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+unsubscr...@googlegroups.com. For more options, visit https

[web2py] Keeping track of changes

2013-03-04 Thread Kenneth
I'm planing on making new copies of them articles in the database and use that one when the upgraded book is released. How would you do keep track of changes in the edited article? All changes needs to be moved into the printed version. Kenneth -- --- You received this message because you

[web2py] DAL/SQL question number 2

2013-03-04 Thread Kenneth
Hi, how do you orderby and groupby with two fields? I have a table with these fields: chapter, page and version. I'd like to find all items that are unique based on chapter and page and has the highest version number. Kenneth -- --- You received this message because you are subscribed

[web2py] Changing reference definition in models files does not update MySQL database

2013-03-02 Thread Kenneth
be the correct way of doing this? The app is still in development so database is quite empty. So no problem to loose the connection between the tables. Kenneth -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group

[web2py] PDF as an background when using pyfPdf

2013-02-19 Thread Kenneth
Hello, does anyone know if it is possible to use an PDF as an background when creating PDFs with pyfpdf? Kenneth -- --- 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

[web2py] Removing HTML TAGS

2013-02-18 Thread Kenneth
on using TAG to remove them. div class=bba name=92912Tässä artikkelissa käydään läpi tulevaisuuden sosiologisia /atrendejä. Os...sista./div I'd like to the ridden of div claas and a name Any ideas? Kenneth -- --- You received this message because you are subscribed to the Google

Re: [web2py] Removing HTML TAGS

2013-02-18 Thread Kenneth
Thank both Bruno and Michele. I just tried you second suggestion Michele but still got an ticket. But by changing places of str and TAG and adding flatten() I got what I wanted. XML(TAG(str(elements[9])).flatten()) Kenneth use beatifulsoup a one stop shop for html mangling http

Re: [web2py] Re: Book app

2013-02-09 Thread Kenneth Lundström
Thank you. Kenneth https://github.com/mdipierro/web2py-book On Friday, 8 February 2013 23:51:57 UTC-6, Kenneth wrote: Hello, is the web2py online book app available as an appliance? I'd like to take a look for example on the database setup. Kenneth -- --- You received

Re: [web2py] Re: Auth with Wordpress

2013-02-08 Thread Kenneth Lundström
Yes, that could be the solution. Atleast as this only a temporary (I really, really hope so) way of doing this. Thank you. Kenneth I guess you could have wordpress set a cookie of some sort if they have access, and then use that cookie in web2py to control access. On Thursday, February 7

[web2py] Book app

2013-02-08 Thread Kenneth
Hello, is the web2py online book app available as an appliance? I'd like to take a look for example on the database setup. Kenneth -- --- You received this message because you are subscribed to the Google Groups web2py-users group. To unsubscribe from this group and stop receiving emails

Re: [web2py] Re: Auth with Wordpress

2013-02-07 Thread Kenneth Lundström
to a web2py site. Somehow WP has to tell web2py that it is OK to show the site for the user. Kenneth Hello Kenneth, But how do I handle that WP takes care of authentication and somehow gives the customer rights to view the manual. I had a similar problem. I added an XMLRPC method to my

[web2py] Auth with Wordpress

2013-02-05 Thread Kenneth
this? Kenneth -- --- 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+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups

[web2py] Re: webgrid and row_created

2012-12-17 Thread Kenneth
Hi, anybody have any ideas? tablerow.components.insert(2, TD(IMG(_src=URL('static', 'delete-article.png'), _onclick=confirmation(rowdata.asset_id), _width=15))) Kenneth Den måndagen den 17:e december 2012 kl. 00:40:10 UTC+2 skrev Kenneth: Hello, I'm using webgrid in an application

Re: [web2py] Re: webgrid and row_created

2012-12-17 Thread Kenneth Lundström
Hi Adi, very many thanks. That was exactly what I was looking for. Kenneth this is how i use onclick for confirmation purpose in a grid: | lambdarow:A('Copy', _class='btn', _onclick='return confirm(Duplicate %s?)'%row.po_number, _href=URL('duplicate_po',args=[row.id

[web2py] webgrid and row_created

2012-12-16 Thread Kenneth
), _width=15))) How do I write that _onclick so that the asset_id is sent to the confirmation Javascript? If I write _onclick='confirmation(rowdata.asset_id)' Javascript gets the text rowdata.asset_id and not the ID I'm tryin to send to it. Kenneth --

[web2py] Re: onaccept in CRUD

2012-12-14 Thread Kenneth
Hi, yes still open. Attached what you requested, hopefully. Kenneth def data(): new = 0 serials = db(db.asset_serial.asset_id == request.args(2)).select() crud.settings.create_onaccept = insert_serial crud.settings.create_next = URL('index',vars=session.http_get_vars,args

[web2py] Re: onaccept in CRUD

2012-12-09 Thread Kenneth
(asset_name = 'testing3') ) and put it into an own function and works fine. But if I put the static row into my onaccept ( crud.settings.update_onaccept = update_assets) function I get the same error. I just wildly guessing but could be somekind of locking issue? Kenneth Den fredagen den 7:e

[web2py] onaccept in CRUD

2012-12-06 Thread Kenneth
/MySQLdb/connections.py, line 35, in defaulterrorhandler raise errorclass, errorvalue IntegrityError: (1062, Duplicate entry '275-2012-12-07 10:26:41' for key 'asset_id') Any ideas what I'm doing wrong? Kenneth --

  1   2   3   4   5   6   >