[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Postal Codes & rwhois

On Thursday 07 March 2002 13:09 pm, Rob Mitzel wrote:

> Hey everyone,
> I'm just in the process of setting up NorthStar for the company that I work
> for...just installed 1.5 with MySQL, and wanted to say first....Hitesh,
> awesome work.  I've been watching this software for a while now, and it's
> really coming together!


> Now, a couple of questions for everyone.
> First, is there a way to soft-hack the software to allow for non-US postal
> codes?  (i.e. Canadian ones...since our company is mostly canadian).  I
> could probably go in and hack it out right in the code, but then of course
> I'd have to change it every time, etc.  I can't leave the postal code
> blank, but I can't enter in a real postal code.

Well... this is easy to do.. all you need to do is go into the regex admin 
and add a new regular expression that will accept the format you need to put 
in.  Then go into the template admin, select your object type (i'm assuming 
Owner) and expand the template (assuming the Default Template).  Click the 
'Edit' link next to the 'Zip/Postal Code' field and change the regex type to 
the one you created above.

If you need help making the regex, send me the format of the postal code's in 
Canada and I will work one up for you and include it in the next release so 
it available for anyone to use.
> Second...anyone actually using an rwhois server with NorthStar?  That's one
> of the main reasons I'm setting this up...pretty sure the rwhois server
> addon on the main website is for the Postgres version, so I'd probably need
> to recode rwhois to use MySQL.  Anyone have thoughts?

The whois server on the page is actually based on v1.1.  As far as I know 
there is not anyone currently using it, however, I will be writing a Perl 
version that will become an official part of the distribution.  This version 
will work on both Postgres and MySQL.  

| Hitesh Patel                    |  Lead Developer            |
| hitesh@presys.com               |  NorthStar                 |
| NorthStar: http://www.brownkid.net/NorthStar/                |
| PGP Key:   http://www.brownkid.net/pgpkey.asc                |