Re: [pylons-discuss] Migrating from Pylons 1.0.2

2025-04-01 Thread Ian Wilson
Pretty impressive it is still working. Is the codebase still using Python 2? The last page of the document that Mike linked seems like the best starting point: https://docs.pylonsproject.org/projects/pyramid_cookbook/en/latest/pylons/migrate.html I guess it also depends on how many resources you

Re: [pylons-discuss] Ensuring the server is running from commandline?

2025-01-10 Thread Ian Wilson
I didn't understand the issue at first. The thing you are trying to avoid is that a script is run with the wrong configuration file because multiple configuration files exist on every server instance, ie. a production.ini is on the staging server and a staging.ini is also on the production server?

Re: [pylons-discuss] Ensuring the server is running from commandline?

2025-01-09 Thread Ian Wilson
Are the scripts running on the same server as the web app? How often are they running? Can you just query and arbitrary URL and see if it returns a 200? Why do you need the hash? Or maybe that other HTTP method, HEAD? Then maybe block it at the proxy and just request it locally. I guess you hav

Re: [pylons-discuss] How to handle unknown resource IDs with URL dispatch and a security policy?

2024-11-21 Thread Ian Wilson
I use a route factory and inside that factory if I can't resolve the context then I raise HTTPNotFound. The factories let you use context without using traversal. Something like this: def member_factory(request): member = lookup_member(request.matchdict['memberid']) if not member:

Re: [capnproto] Schema Refactoring and Unique IDs

2023-08-01 Thread 'Ian Wilson' via Cap'n Proto
Hi all, apologies for jumping on this thread a few years later. I have a similar question: suppose I have 2 different capnp files with the same file ID. # file foo.capnp 0xabbeabbeabbeabbe; struct Foo { val @0 : UInt32; }; # file bar.capnp 0xabbeabbeabbeabbe; struct Bar { val @1 : UInt32;

Re: [pylons-discuss] Re: using pyramid without an ORM ?

2022-08-18 Thread Ian Wilson
I guess SQLAlchemy is complicated but we are talking about a library for interacting with SQL(!) (and sometimes even mysql!). The amount of effort that has been put into the design, the documentation, the support, the migration notes, deprecation warnings, BWC, etc. is inspiring. We are spoiled in

[jira] [Commented] (AIRFLOW-6912) Airflow unable to run concurrent ssh tasks (up to 27) in a single dag

2021-10-08 Thread Ian WIlson (Jira)
[ https://issues.apache.org/jira/browse/AIRFLOW-6912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17426325#comment-17426325 ] Ian WIlson commented on AIRFLOW-6912: - [~phuc] [~ash] I hit this issue

Re: [pylons-discuss] Pyramid 2.0 released

2021-02-28 Thread Ian Wilson
Thanks Michael and all the Pyramid core developers! Looking forward to trying out the new security system. On Sun, Feb 28, 2021 at 7:41 PM Michael Merickel wrote: > Yay, Pyramid 2.0 is out. Get it while it's hot! > > If you're able to run 1.10.8 without deprecation warnings then you're in a > g

Re: [pylons-discuss] migrating away from formencode?

2020-10-02 Thread Ian Wilson
I guess I'm still using formencode too with python3 but maybe I just worked around the bugs. Do you know what is holding up the release? Is it for sure a dead-end? - Ian On Fri, Oct 2, 2020 at 1:20 PM Steve Piercy wrote: > Deform uses Colander and Peppercorn. Use Colander for schemas and > v

[pylons-discuss] Re: processing after responding to client

2018-11-10 Thread Ian Wilson
Are these calls from your own template/client? If the records are not critical, ie. for billing, throttling, have you considered just firing a second js request to the background *in the client* to record the event after the first ajax request is processed. Or if there are a lot of requests p

[Gmail-Users] Compose claims that there are no contacts.

2013-07-22 Thread Ian Wilson
When I select the compose addressee options in the my contact/all contacts books 'compose' option it comes back these are empty. Clearly when I go to these in the contacts option these are all there. Patently the two are not reconising each other. Any suggestions? Thanks ıan -- You re

Re: [tryton-dev] Sorting by rec_name with product name.

2013-07-18 Thread Ian Wilson
On Thu, Jul 18, 2013 at 3:49 PM, Cédric Krier wrote: > On 18/07/13 13:47 -0700, Ian Wilson wrote: > > Is there any plan in the future to make it so product's can be sorted by > > their name? > > It is a not easy task with current design of ModelSQL. > I hope i

[tryton-dev] Sorting by rec_name with product name.

2013-07-18 Thread Ian Wilson
Is there any plan in the future to make it so product's can be sorted by their name? My product codes are numeric so the sort order is totally arbitrary right now. The product.template and product.product redesign seems to have broken that functionality. I think this is the related comment and c

Re: [tryton-dev] Performance problems with 2.6

2013-05-28 Thread Ian Wilson
Hi everybody, Just to follow up, upgrading from tryton 2.6 to tryton 2.8 improved the total speed to pay an invoice + ship a shipment + finish a sale by 5 to 10 times without any algorithm changes in my custom modules (ie. I just needed to upgrade them to 2.8). It was taking 70+ seconds(all combi

Re: [tryton-dev] Performance problems with 2.6

2013-04-16 Thread Ian Wilson
On Tuesday, April 16, 2013 12:15:53 AM UTC-7, Cédric Krier wrote: > > On 15/04/13 21:00 -0700, Ian Wilson wrote: > > I tried to turn on sql logging with Transaction().cursor.sql_log = True > at > > the start of my do_process method. I'm not sure if there is a better

Re: [tryton-dev] Performance problems with 2.6

2013-04-15 Thread Ian Wilson
On Monday, April 15, 2013 9:00:25 PM UTC-7, Ian Wilson wrote: > > > > On Monday, April 15, 2013 10:37:12 AM UTC-7, Cédric Krier wrote: >> >> On 15/04/13 09:36 -0700, Ian Wilson wrote: >> > Hello people of Tryton, >> > >> > I'm experi

Re: [tryton-dev] Performance problems with 2.6

2013-04-15 Thread Ian Wilson
On Monday, April 15, 2013 10:37:12 AM UTC-7, Cédric Krier wrote: > > On 15/04/13 09:36 -0700, Ian Wilson wrote: > > Hello people of Tryton, > > > > I'm experiencing performance problems and had some questions about them. > > > > I have a wizard th

[tryton-dev] Performance problems with 2.6

2013-04-15 Thread Ian Wilson
Hello people of Tryton, I'm experiencing performance problems and had some questions about them. I have a wizard that works like a sales register for retail sales. It works as follows: An employee enters in a list of products, their quantities and optionally new prices and then clicks process

Re: [mogtalk2] Plus 4 '07 Hood

2012-07-24 Thread Ian Wilson
e trick is to utterly degrease, and then do it again. I can't emphasise this > enough. > > rgds Martyn > > > On Jul 23 2012, ian wrote: > > On 22/07/12 18:10, Ian Wilson wrote: >  >  Just tried to raise hood after glorious afternoon run and one of the >pi

Re: [mogtalk2] Plus 4 '07 Hood

2012-07-23 Thread Ian Wilson
2012, ian wrote: On 22/07/12 18:10, Ian Wilson wrote: > Just tried to raise hood after glorious afternoon run and one of the pivoting > arms came away from the metal of the header rail. Is this a weld/braise job > (beyond my scope) or are there other solutions? > > Many thanks >

[mogtalk2] Plus 4 '07 Hood

2012-07-22 Thread Ian Wilson
Just tried to raise hood after glorious afternoon run and one of the pivoting arms came away from the metal of the header rail. Is this a weld/braise job (beyond my scope) or are there other solutions? Many thanks Ian Wilson --- View posts on The Mail

Black screen after netinstall

2012-07-03 Thread Ian Wilson
Hello, I need a little help here.  I did a netinstall of Squeeze to my IMac G3 which has 650Mb of ram. I selected to bottom option from the menu ( install separate partitions ) and also the GUI at install.  Booting results in a black screen.   Typing at the boot: prompt doesn't work, neither d

Re: FYI Netflix is down

2012-06-29 Thread Ian Wilson
On Fri, Jun 29, 2012 at 11:44 PM, Grant Ridder wrote: > I have an instance in zone C and it is up and fine, so it must be A, B, or > D that is down. It is my understanding that instance zones are randomized between customers -- so your zone C may be my zone A. Ian -- Ian Wilson ian

Re: [mogtalk2] Petrol fumes Plus 4

2012-06-12 Thread Ian Wilson
it could be - corroded or perished fuel lines are quite likely. >  >Regards, >Owen. >- Original Message - >>From: Ian Wilson >>To: mogtalk2 >>Sent: Sunday, June 10, 2012 6:42 PM >>Subject: [mogtalk2] Petrol fumes Plus 4 >> >> >

[mogtalk2] Petrol fumes Plus 4

2012-06-10 Thread Ian Wilson
New to this group so apologies if I transgress! My 2007 Plus4 has been producing strong petrol-smelling fumes. Took to dealer who checked fuel lines, tank etc. Underneath of chassis dry and nothing seen on ground under car each day. Any suggestions as to cause please? Thanks in advance Ian ---

Re: WebHelpers future

2012-04-15 Thread Ian Wilson
Hi Mike, Yes that was me, I talked to you at the Pyramid booth and at that get together during PloneConf. Integrating with the other project sounds good to me. -Ian On Sun, Apr 15, 2012 at 11:25 AM, Mike Orr wrote: > On Sat, Apr 14, 2012 at 11:51 AM, plantian wrote: > > I was just looking at

Re: [Elecraft] OT: Need Antenna Tuning Help

2012-03-08 Thread Ian Wilson
The basic bridge in the MFJ - and lots of other impedance analyzers - is insensitive to the sign of the reactive impedance. You can figure it out by making a "small" change in frequency and seeing whether the reactance increases or decreases. However, this takes additional software in the uP, incre

[Elecraft] Looking for K2 PCB

2012-02-26 Thread Ian Wilson
I would like to do some experiments with the K2 VFO. If someone has a dead (or unbuilt) K2 VFO/PLL PCB, I would be interested in it. Trades and/or a small amount of cash would be available. This is strictly for personal interest - I have attempted to replicate K2 VFO performance using ugly construc

[lwip-users] Incoming packets not seen by lwip_select on second accept

2012-01-17 Thread Ian Wilson
Hello all, I can provide more details than this (incl. lwip debgs and wireshark logs) but I wanted to find out first if there is something obvious before imposing on people to parse my detailed data. I have tried to search for relevant Q&A's but with no success. I have a lwip based system r

[sqlalchemy] subqueryload problem

2011-11-10 Thread Ian Wilson
I'm not sure if this is a case of user error or what but I'm trying to use a double sub-query load. The odds are probably pretty good that I'm doing something wrong. I just finally got around to trying subqueryload and I think it is what I've been looking for my entire life. Although the SQL bei

Re: [tryton-dev] Tryton Mac Client

2011-11-03 Thread Ian Wilson
Thanks for getting this thing running, I might be able to leave 1.8 now. Both 2.0 and 2.2 seemed to work for a user I had install them and connect to the demo. The mac version was 10.6.8. On Wed, Nov 2, 2011 at 4:26 AM, Cédric Krier wrote: > On 01/11/11 22:58 -0400, Phillip Heller wrote: > > G

Re: [tryton] How to use price lists

2011-10-10 Thread Ian Wilson
On Sun, Oct 9, 2011 at 3:49 AM, Sasa Ostrouska wrote: > On Sun, Oct 9, 2011 at 8:25 AM, Cédric Krier > wrote: > > On 08/10/11 17:56 -0600, Tom Schutter wrote: > >> On Sun 2011-10-09 00:09, Cédric Krier wrote: > >> > On 08/10/11 14:36 -0700, Tom Schutter wrote: > >> > > I am using Tryton 2.0.1.

Re: [tryton] Tryton Administration Manual

2011-10-04 Thread Ian Wilson
On Mon, Oct 3, 2011 at 8:11 PM, Luis Falcon wrote: > > > 2011/10/2 Telesight > >> Because there was not a real manual for administrators, I have started a >> Tryton 2.0 Administration manual. >> >> Hopefully it can help beginners with Tryton to understand the system and >> use Tryton as a support

Re: [tryton-dev] Product System

2011-09-26 Thread Ian Wilson
On Sat, Sep 24, 2011 at 1:40 PM, zodman wrote: > On Fri, Sep 23, 2011 at 12:20 PM, Ian Wilson wrote: > > Hi, > > > > Does anyone have any modules which extend the product system for > > product bundles and/or product variants? > > > > By bundle I mean a p

[tryton-dev] Product System

2011-09-23 Thread Ian Wilson
Hi, Does anyone have any modules which extend the product system for product bundles and/or product variants? By bundle I mean a product which is composed of two or more other products. Would it make sense to just add the other products to the sale lines with price 0 ? I guess the worry with ju

Re: [tryton-dev] A new design for wizard

2011-08-24 Thread Ian Wilson
On Wed, Aug 24, 2011 at 1:52 PM, Cédric Krier wrote: > On 24/08/11 13:05 -0700, Ian Wilson wrote: > > On Wed, Aug 24, 2011 at 12:13 PM, Cédric Krier >wrote: > > > > > On 24/08/11 11:34 -0700, Ian Wilson wrote: > > > > I'm not sure if its too soon to

Re: [tryton-dev] A new design for wizard

2011-08-24 Thread Ian Wilson
On Wed, Aug 24, 2011 at 12:13 PM, Cédric Krier wrote: > On 24/08/11 11:34 -0700, Ian Wilson wrote: > > I'm not sure if its too soon to bring up these other points so tell me if > > so: > > > > 1. StateAction seems to actually contain the next state as an attribut

Re: [tryton-dev] A new design for wizard

2011-08-24 Thread Ian Wilson
On Tue, Aug 23, 2011 at 5:36 AM, Cédric Krier wrote: > On 23/08/11 08:27 -0400, Sharoon Thomas wrote: > > > > On Aug 22, 2011, at 5:15 PM, Cédric Krier wrote: > > > > > > > > class Example(Wizard): > > >start = 'init' > > >end = 'end' > > > > > >init = StateForm('account.invoice', but

[google-appengine] Re: Data Center (CDN) Locations

2011-08-03 Thread Ian Wilson
That is interesting, I will also be testing and developing in Yokohama and Tokyo this month. I am currently testing from europe but will see how much of a difference there is from Japan. -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To

Re: [google-appengine] Re: Data Center (CDN) Locations

2011-08-02 Thread Ian Wilson
Ikai, Thank you for the information. I will keep in mind the optimization tips. Do you guys have local data centers as part of your road map? (I know Amazon recently set up a dedicated center for AWS in Tokyo). Ian -- You received this message because you are subscribed to the Google Groups "

[google-appengine] Data Center (CDN) Locations

2011-08-02 Thread Ian Wilson
I have been searching around but have not seen information on where App Engine data centers are located and how loads are spread? So I have two questions: - Where are the App Engine data centers? (i.e. West Coast, East Coast, Europe...) - What criteria are used to serve an app from one data cent

Re: Re: [google-appengine] Re: App Engine Chat Time!

2011-08-02 Thread Ian Wilson
Hi Brett, I have just finished a Facebook App built on Google App Engine and am currently engaged with another client to build their Facebook App. I would be happy to take a look at your requirements and discuss the project in more detail. You can contact me at [my first name] at [emotionai.com

Re: [tryton-dev] New module sale_rebate (issue66001)

2011-07-19 Thread Ian Wilson
On Tue, Jul 19, 2011 at 12:06 AM, Cédric Krier wrote: > On 18/07/11 15:31 -0700, Ian Wilson wrote: > > On Sun, Jul 17, 2011 at 2:05 PM, wrote: > > > > What is the purpose of this module? > > > > The term rebate seems ambiguous. Why not use the term discoun

Re: [tryton-dev] New module sale_rebate (issue66001)

2011-07-18 Thread Ian Wilson
On Sun, Jul 17, 2011 at 2:05 PM, wrote: > Reviewers: , > > > > Please review this at > http://codereview.tryton.org/**66001/ > > Affected files: > A COPYRIGHT > A INSTALL > A LICENSE > A MANIFEST.in > A README > A __init__.py > A __tryton__.py > A doc

Re: [tryton-dev] Roundup usage reminder

2011-03-06 Thread Ian Wilson
I think emails are a good idea. There seems to be no components for either tryton or trytond. Am I misinterpreting the meaning of "component"? What component should documentation patches be, for example documentation of tryton views? -Ian On Sat, Mar 5, 2011 at 7:57 PM, Cédric Krier wrote: > H

Re: Unclear behaviour of formencode.Schema with UnicodeString items

2011-02-12 Thread Ian Wilson
;s tracker. Do you have > any additional suggestions that should be mentioned in it? > > > On Feb 11, 5:10 am, Ian Wilson wrote: > > After thinking about this more it would probably be better if > UnicodeString > > just had a parameter that turned coercion of everyth

Re: Unclear behaviour of formencode.Schema with UnicodeString items

2011-02-10 Thread Ian Wilson
gt; If we don't use mixed then how do we get the multiple values when we want > > them? > > We might explicitly specify our expectations with ForEach() and Set() > validators. > formencode's FancyValidator could internally test currently running > validator by calling

Re: Unclear behaviour of formencode.Schema with UnicodeString items

2011-02-08 Thread Ian Wilson
Hi, I think this behavior happens because mixed is used here https://bitbucket.org/ianb/formencode/src/d95237b33f3c/formencode/api.py#cl-403. If you don't want that to happen ever then I think you need to cast params to a regular dictionary, with something like dict(request.params.items()). This w

Re: Form handling in Pyramid

2011-01-17 Thread Ian Wilson
Hello Mike, On Mon, Jan 17, 2011 at 11:23 AM, Mike Orr wrote: > So this email is to > collect feedback for that: what are people using, and what do they > think makes sense for Pyramid. > I'm still using formencode for validation/conversion. I use a custom class that encapsulates the minimum f

Re: [tryton] Sale lines with negative quantities generate credit notes and return shipments

2010-12-29 Thread Ian Wilson
So I'm thinking returns and empties should be handled before the sale is made. So that tryton user comes to sale with the other documents/models already completed(ie. return processed, empties recorded). So that they may be somehow linked and used to reduce total price of sale. Accounting and inv

Re: [tryton] Sale lines with negative quantities generate credit notes and return shipments

2010-12-29 Thread Ian Wilson
On Tue, Dec 28, 2010 at 3:17 AM, Udo Spallek wrote: > Hi, > > Am Montag, den 27.12.2010, 19:29 -0800 schrieb Ian Wilson: > > I guess I wasn't exactly sure how returns of actual products(ie. not > > containers) should be handled but it would be nice if they could be >

Re: [tryton] Sale lines with negative quantities generate credit notes and return shipments

2010-12-29 Thread Ian Wilson
ing will be done at all regarding > stock > > when they are returned. > > I think in case of damage you will have for a product purchased > from another supplier at least a move from customer_in_location to > supplier_out_location. For a product produced by the company it

Re: [tryton] Sale lines with negative quantities generate credit notes and return shipments

2010-12-27 Thread Ian Wilson
I guess I wasn't exactly sure how returns of actual products(ie. not containers) should be handled but it would be nice if they could be handled within the realm of a sale. I agree that "damaged" products that are type stockable should not be returned to storage. The return of damaged products is

[tryton] Sale lines with negative quantities generate credit notes and return shipments

2010-12-27 Thread Ian Wilson
Hi, I need to add a new feature to tryton. I will describe the motivation, what tryton does now, the design for the new feature and then ask for feedback. Motivation I have a business scenario where a customer must receive a discount when they return types of containers our business can re-use.

Re: [tryton-dev] Search Many2Many

2010-12-14 Thread Ian Wilson
strategy to solve this problem? Thanks. -Ian On Sat, Jan 16, 2010 at 6:09 PM, Ian Wilson wrote: > Well I don't think I know how child_of works either. Can someone show > me some example usage? Preferable an example that doesn't use > self-referencing because there seems to be

Re: [tryton-dev] Better search GUI

2010-12-13 Thread Ian Wilson
h ?. Such as :rec_name ?ilike Ian. -Ian On Thu, Dec 9, 2010 at 2:13 PM, Ian Wilson wrote: > Well I wrote a small implementation with pyparsing because I had used > booleano before for something similar. It requires stricter quoting and > commas though to be sensible. I will send i

Re: [tryton-dev] Better search GUI

2010-12-09 Thread Ian Wilson
010 at 12:29 PM, Bertrand Chenal wrote: > Le Thu, 9 Dec 2010 01:39:33 -0800, > Ian Wilson a écrit : > > > Is work still being done on this ? I have some ideas and I prototyped > > some code. > > > > Would it be acceptable to change this case from: > > > >

Re: [tryton-dev] Better search GUI

2010-12-09 Thread Ian Wilson
Is work still being done on this ? I have some ideas and I prototyped some code. Would it be acceptable to change this case from: search: lang: fr_FR en_US domain: [('lang', 'in', ('fr_FR', 'en_US')] search: lang: fr_FR, en_US domain: [('lang', 'in', ('fr_FR', 'en_US')] I have added a comma bet

[tryton-dev] Introductory wizards documentation.

2010-12-07 Thread Ian Wilson
Hi, I started some introduction documentation for wizards and though I would share it before I got too carried away. If people have any suggestions that would be great. There may be mistakes because wizard implementation can be confusing. Code review of documentation addition: http://coderevie

[tryton-dev] Creating ModelView in Wizard.

2010-12-06 Thread Ian Wilson
Hello, Sorry forgot difference between tryton and tryton-dev. Moved this question from tryton to here. I have wizard that I want to interact only with model views. My users will use the wizard to lookup inventory and pricing for a product. I have created a module and things are going along oka

[tryton] Creating ModelView in Wizard.

2010-12-05 Thread Ian Wilson
Hello, I have wizard that I want to interact only with model views. My users will use the wizard to lookup inventory and pricing for a product. I have created a module and things are going along okay except I want to set values for a Many2One field. I'm not sure what to pass in or if its even p

Re: [tryton-dev] Re: Help for design choice to fix issue1776

2010-12-04 Thread Ian Wilson
Yes maybe a helper method could be provided for use in subclasses that does this ids conversion when needed. Although this __getattr__ ids conversion is only used when the subclass does not have the method. So more than likely it would be in use without intervention of the developer right? On Sa

Re: how can I render an image (barcode) without writing the file to disk?

2010-12-02 Thread Ian Wilson
Seems that you want something like this when using StringIO (in python 2.6 at least): try: return f.getvalue() finally: f.close() On Thu, Dec 2, 2010 at 2:33 PM, snfct...@sacfoodcoop.com < snfct...@sacfoodcoop.com> wrote: > I want my controller to return a UPC barcode as action with one

Re: can some one help me choose the right library for dynamic forms?

2010-08-18 Thread Ian Wilson
Formencode has a notion of nested variables/repetitions. Is that what you are trying to do ? http://formencode.org/Validator.html#http-html-form-input It can be tricky to setup but its possible. On Wed, Aug 18, 2010 at 12:18 PM, Krishnakant Mane wrote: > Hello all, > I have off late posted a

Re: formencode custom validators not running

2010-08-16 Thread Ian Wilson
d > if hasattr(state, 'current_user') and len(value) == 0: > return value > > if len(value) == 0: > raise formencode.Invalid('Please enter a value', value, state) > elif len(value) < 6: > raise formencode.Invalid

Re: formencode custom validators not running

2010-08-16 Thread Ian Wilson
Hi, I think you want FlexPassword(not_empty=True). FancyValidator handles the empty case internally before your method is called. There might be another method that overrides this but if you need a custom message for not empty then you can just override the 'empty' key in messages with your own

Re: Returning a file object from an action

2010-07-21 Thread Ian Wilson
Hello, I think you want something like this. from paste.fileapp import FileApp # in controller #...in some action, get the path to serve wsgi_app = FileApp(path) return wsgi_app(request.environ, self.start_response) A better solution you might want to look into

Re: validator with two arguments

2010-05-10 Thread Ian Wilson
Hi, I hope my late response will still be helpful. You probably want to use a chained validator. A chained validator is a validator placed in the chained_validators attribute of a schema. It has access to the entire value dictionary instead of a single value. You can use the dictionary to get

Re: Questions/Python

2010-04-20 Thread Ian Wilson
of questions but I can't quantify them now. Thanks again for the help. I'm sure I'll be back with more questions later. -Ian On Sat, Apr 17, 2010 at 12:08 PM, Tim Wintle wrote: > I am running PHP Shindig supporting a main application built in > Python... > > On Fri,

Questions/Python

2010-04-16 Thread Ian Wilson
Hi, I'm just researching around about social networking. I'm thinking about starting my own social site although I'm not sure if I should just be making apps for existing social sites. Shindig looks like a really fast way to get started but I have a few questions. Does shindig have an IRC chan

Re: formencode 1.2.2 and the hidden _method field

2010-03-31 Thread Ian Wilson
http://formencode.org/modules/htmlfill.html#formencode.htmlfill.render The keyword argument force_defaults=True will remove values from the html that are not given in the defaults dictionary. Maybe this is what you were experiencing? On Mar 31, 2:29 am, Mike Burrows wrote: > Hi, > > Has anyone

Re: [tryton-dev] Tax Improvements

2010-03-21 Thread Ian Wilson
Hello, I had some questions and comments. First off you are specifically talking about the account_tax table, right? That entire function would be stored as raw text in the new field? Why not just store the name or path to the function and let the function reside in a module? Placing the functi

Re: [tryton-dev] XML-RPC authentication

2010-03-17 Thread Ian Wilson
I don't know much about this, but I thought repeating sending the username and password was frowned upon. Why is this a better approach than the session/login approach? On Wed, Mar 17, 2010 at 8:17 AM, Cédric Krier wrote: > Hi, > > I propose to change the authentication mechanism used in XML-RPC

Re: Validating a select box

2010-03-03 Thread Ian Wilson
Just an additional note, you can combine validators to solve the int/ str problem using All or Any, (from formencode import All, Any) such as: my_select = All(OneOf([0,1,2,3,5,8,13,21,34]), Int()) So here Int converts the string to an integer and that integer gets checked by OneOf. You probably n

Re: Validating whether a field value is equal to another

2010-02-28 Thread Ian Wilson
Some autocomplete widgets allow you to clear the hidden field when the text field has not been selected from the dropdown. I think YUI allows that which kind of alleviates this problem because if they delete part of the input text then it clears the hidden field. If you still need to pass it thro

Re: Validating optional fields in a form

2010-02-28 Thread Ian Wilson
If you set allow_extra_fields=True and filter_extra_fields=False on your schema then you would only need to specify the fields you need validated. I don't recommend this though because then you could receive any fields and since its a truly public interface that is probably a bad idea. So I would

Re: [tryton-dev] Split tests and use SQLite memory database (issue224071)

2010-02-28 Thread Ian Wilson
I don't think I really understand how to run or create unit tests in tryton. I have seen different configuration files for testing versus production versus development in another project though. The parameter db_type exists in the configuration file now. Why can't that be used to pick which databa

Re: annoying htmlfill error - on error, overwrites all submit buttons with the selected option from formencode/validate

2010-02-27 Thread Ian Wilson
Seems like a work around would be to just give the fields different names right? If they are named do_this and do_that then they either have a value or they do not. Another solution would be to only fill the fields and not the submit buttons, that isn't always possible though depending on your lay

Re: how to make formencode validate conditionally

2010-02-20 Thread Ian Wilson
Hello hello, You probably want to create a chained form validator. Then apply the validators to the combo fields manually depending on if your checkbox is True or False. There are other ways to do this but I've created a pastie of one. You can mess around and see if it fits what you need. http

Re: Weird exception with formencode

2010-02-15 Thread Ian Wilson
Seems like you have a type="textbox" when you should have a type="text". http://www.w3.org/TR/html401/interact/forms.html#h-17.4 type = text|password|checkbox|radio|submit|reset|file|hidden|image|button People on the formencode just recently list talked about adding a way to tell htmlfill.render w

Re: Formencode class

2010-02-10 Thread Ian Wilson
I'm not quite sure if what I'm about to discuss is what you're asking so correct me if I'm wrong. A trailing comma will sometimes create a tuple depending on the context which doesn't have much to do with formencode. Ha also yes that comma thing has happened to me. The company attribute is recei

Re: formencode.FancyValidator

2010-02-04 Thread Ian Wilson
I think this is what you are looking for. Two values are pulled from the field_dict. http://bitbucket.org/gjhiggins/shabti/src/tip/shabti/templates/authplus/+package+/forms/validators/validlogin.py_tmpl You might need to put this validator in chained_validators. On Thu, Feb 4, 2010 at 3:09 PM,

Re: [tryton] Extending party

2010-01-30 Thread Ian Wilson
Also here is an example of controlling the visibility of your tab. This code conditionally shows a tab(Customers tab) on a product if that product has been marked as salable or not: http://hg.tryton.org/hgwebdir.cgi/modules/sale/file/5244221bf646/sale.xml#l888 -Ian On Thu, Jan 28, 2010 at 11:41 P

Re: [tryton-dev] Please review Fix for issue1389

2010-01-19 Thread Ian Wilson
This codereview link also returns a 404. 2010/1/19 Hartmut Goebel : > Please review http://codereview.appspot.com/190066/ > Fix for https://bugs.tryton.org/roundup/issue1389 > > -- > Schönen Gruß - Regards > Hartmut Goebel > Dipl.-Informatiker (univ.), CISSP, CSSLP > > Goebel Consult > Spezialist

Re: [tryton-dev] Please review Code cleanup for modulestorage.py

2010-01-19 Thread Ian Wilson
The codereview link seems to return a 404. 2010/1/19 Hartmut Goebel : > > http://codereview.appspot.com/190069/ > > -- > Schönen Gruß - Regards > Hartmut Goebel > Dipl.-Informatiker (univ.), CISSP, CSSLP > > Goebel Consult > Spezialist für IT-Sicherheit in komplexen Umgebungen > http://www.goebel-

Re: [tryton-dev] Search Many2Many

2010-01-16 Thread Ian Wilson
ier wrote: > On 16/01/10 14:07 -0800, Ian Wilson wrote: >> Hi, >> >> Maybe I overlooked something but does the search method work for >> many2many relationships? If so what is the syntax?  It does not seem >> to be covered in >> http://doc.tryton.org/1.4/tryt

[tryton-dev] Search Many2Many

2010-01-16 Thread Ian Wilson
Hi, Maybe I overlooked something but does the search method work for many2many relationships? If so what is the syntax? It does not seem to be covered in http://doc.tryton.org/1.4/trytond/doc/models.html#search-clauses. If search does not work for Many2Many a strategy should at least be explaine

Re: [tryton] call a function inside reports

2010-01-16 Thread Ian Wilson
Tryton using relatorio so that's hard to say but I think it should be approached from within tryton. To make the function available you need to extend the report by overloading the parse method and putting your function into the context variable. Here I set a variable called store which is access

Re: [tryton-dev] Adding SO_KEEPALIVE to pysocket

2010-01-16 Thread Ian Wilson
Do you understand how this works(I do not)? I have had a frequent problem with a computer that uses internet over cellar wireless and it has all kinds of problems(latency, crashing). Maybe this would help? Does tryton try to keep the socket open for the duration of a session ? -Ian On Sat, Jan

Re: [CentOS] IUD Number

2010-01-05 Thread Ian Wilson
On Tue, Jan 5, 2010 at 3:53 PM, Susan Day wrote: > How do I get the IUD number for a user? I believe you mean UID. You can get that by typing: id For me: -bash-3.2# id ian uid=500(ian) gid=500(ian) groups=500(ian) In this case, my UID would be 500. Ian -- Ian Wilson ian.m.

Re: Repeating elements and htmlfill

2009-12-23 Thread Ian Wilson
On Wed, Dec 23, 2009 at 8:26 PM, Mike Orr wrote: > On Wed, Dec 23, 2009 at 3:58 AM, Mike Burrows (asplake) > wrote: >> I'm far too new to Pylons to feel confident enough to contribute >> documentation but I have linked to a few of my blog posts here.  I >> don't see too many others doing the same

[asterisk-biz] SIP Provider in the US

2009-12-14 Thread Ian Wilson
prepaid or postpaid providers, but for the time being, I'd prefer prepaid, just for my sanity and the sanity of my customers. Can anyone refer me to a specific provider, or, if you're a provider, mail me off-list? Thanks; Ian -- Ian Wilson ian.m.wil...@gmail.com Solving site load issues

Re: [tryton-dev] MRP Migration

2009-12-04 Thread Ian Wilson
Yeah I looked over the openerp mrp stuff and it did not seem to be very user friendly. It seemed more ad-hoc and slightly disorganized. Although on the other hand all I wrote was a plan and almost no code. There are still some outstanding design decisions that were never resolved. I have't writ

Re: [tryton-dev] MRP Migration

2009-12-04 Thread Ian Wilson
I haven't had time to work on this. What is being migrated from where? On Tue, Dec 1, 2009 at 11:28 PM, Cédric Krier wrote: > On 01/12/09 10:44 -0500, Juan Fernando Jaramillo Botero wrote: >> I'm in the way to begin to migrate the MRP modules. I'm just begin, >> because I have some potential cli

Re: @validate ....

2009-11-20 Thread Ian Wilson
the form handling library that uses formencode and webhelpers(barely): http://bitbucket.org/ianjosephwilson/former/src/tip/former/handler.py http://bitbucket.org/ianjosephwilson/former/src/tip/former/pylonshandler.py On Wed, Oct 28, 2009 at 1:57 PM, Mike Orr wrote: > > On Wed, Oct 28

[tryton] Re: New mailling lists for dev and security

2009-11-16 Thread Ian Wilson
Ha oh yeah sorry about that, I thought it was for *security notifications* and just signed up without thinking. Will you post fix notifications on the main list? On Mon, Nov 16, 2009 at 2:41 PM, Cédric Krier wrote: > On 16/11/09 00:38 +0100, Cédric Krier wrote: >> On 10/09/09 23:03 +0200, Cédri

[Repoze-dev] [issue109] Constructor Prototype Documented Incorrectly

2009-11-14 Thread Ian Wilson
New submission from Ian Wilson : I could be wrong but the authenticators argument seems to be missing from the constructor of PluggableAuthenticationMiddleware which causes problems for me and other new users. Thanks. Index: configuration.rst

Re: external program output

2009-11-12 Thread Ian Wilson
Maybe I'm totally wrong but maybe the program is outputting to stderr which you seem to be ignoring: (stdoutOutput, stderrOutput) = subprocess.Popen(args, stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate() print "stdout", stdoutOutput print "stderr", stderrOutput On Thu, Nov 12, 2009

Re: Repeating elements and htmlfill

2009-11-02 Thread Ian Wilson
Yeah as far as I know it does not work like that for the first case. You need to preprocess your defaults with formencode.variabledecode.variable_encode() to change the first case into the second case. I'm still working on a good repetitions example, are you using javascript? You should look at

Re: @validate ....

2009-10-28 Thread Ian Wilson
On Oct 23, 6:29 pm, Mike Orr wrote: > On Fri, Oct 23, 2009 at 4:44 PM, Ian Wilson wrote: > > > I think validate was created as a simple yet incomplete solution but > > people expect it to do everything. > > Yes. I think it was created because TurboGears had a validate &

  1   2   3   4   5   6   7   8   9   10   >