Web Applications - Separating DB Connections

2011-06-08 Thread Burhan
Hello Everyone:

  I am trying to find a way to extract and remove database connection
information (username, password, schema name) from the application
source. I need to do this because in my organization - for security
reasons - access to databases is controlled by a separate department;
and as such, when a solution is deployed to production - the
authentication credentials for the databases are changed (and not told
to the development team).

  Currently all development is done in Java and with that they have
the ability to publish databases as a service in their application
server; this way users can be granted access to modify the credentials
to the JDBC data source without having to edit source code of the
application being deployed.  I am looking for something similar in
Python (short of using Jython).

Thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: simple web/html testing

2011-06-08 Thread Burhan
On Jun 7, 10:42 pm, Tim  wrote:
> On Jun 7, 2:05 pm, Miki Tebeka  wrote:
>
> >http://pypi.python.org/pypi/selenium?
>
> I looked at Selenium and it may be what I need, but when I searched
> for selenium and "broken link" (one of the things I need to test for),
> I found only an unanswered 
> question:http://groups.google.com/group/selenium-users/browse_thread/thread/7d...
>
> Do you think I could configure selenium to run the tests?
>
> At this moment, I'm looking at using Jenkins to run the tests as self-
> written python scripts using lxml, among other things.

Using selenium, you can check for broken links[1]. Hope this helps.

--
Burhan Khalid

1. 
http://stackoverflow.com/questions/1453527/how-to-check-url-for-404-using-selenium-webdriver

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Web Applications - Separating DB Connections

2011-06-08 Thread Burhan
On Jun 8, 1:22 pm, Stuart MacKay 
wrote:
> A simple way to do this is use fabric for deployment. It allows you to
> upload a file as if it was a template and replaces any placeholder
> strings with values supplied when you upload. The values can be supplied
> either in a config file or interactively when the deployment takes place.

Unfortunately our servers are Windows so neat tools like fabric (which
I
had used before on private projects) is out of the question. I am not
aware
of it being using for Windows servers successfully.

Thanks!
-- 
http://mail.python.org/mailman/listinfo/python-list


Printing Barcodes from webapp?

2006-12-01 Thread Burhan
Hello Group:

  I am in the planning stages of an application that will be accessed
over the web, and one of the ideas is to print a barcode that is
generated when the user creates a record.  The application is to track
paperwork/items and uses barcodes to easily identify which paper/item
belongs to which record.

  Is there an easy way to generate barcodes using Python -- considering
the application will be printing to a printer at the client's machine?
I thought of two ways this could be done; one would be to interface
with the printing options of the browser to ensure that margins,
headers, footers are setup properly (I have done this before using
activex and IE, but with mixed results); the other would be to install
some small application at the client machine that would intercept the
print jobs and format them properly (taking the printing function away
from the browser).

  Does anyone have any experience or advice? Any links I could read up
on to help me find out how to program this?  Another way (easier
hopefully) to accomplish this?

Thanks for any advice.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Printing Barcodes from webapp?

2006-12-02 Thread Burhan

Andy Dingley wrote:
> Burhan wrote:
>
> >   Is there an easy way to generate barcodes using Python
>
> Easy way for any application or language to generate barcodes is to
> install a barcode font on the client machine, then just generate a
> suitable text string for it. This is _very_ easy, if you can get the
> font deployed.  I usually find myself using Code 39 and printing them
> from a HTML document. There are plenty of free code 39 fonts around and
> the string mangling to get the barcode structured correctly is just a
> trivial prefix / suffix.

I thought about this as an option too, but I do not have control over
the client machines, maybe I'll use this and go with the PDF idea
mentioned above.

Thanks for all the links, I have some reading to do now.

-- 
http://mail.python.org/mailman/listinfo/python-list