I need a DAL adapter for the ibm_db_dbi connector and have no idea where to
even begin.  It's on the back-burner for now but will pick it up again when
I have some free time.

-Jim

On Wed, Mar 29, 2017 at 12:03 PM, António Ramos <[email protected]>
wrote:

> PLEASE SHARE AS SOON AS YOU DO IT !
> :)
>
> 2017-03-29 17:14 GMT+01:00 Jim Steil <[email protected]>:
>
>> Yes, I knew bottle was available.  But, I don't like this from their
>> slides:
>>
>> "We ship a slightly-modified version of the open-source bottle.py"
>>
>> And of course, I want to run web2py!
>>
>> On Wed, Mar 29, 2017 at 10:33 AM, António Ramos <[email protected]>
>> wrote:
>>
>>> just sharing my search of python and iseries ( looks like bottle
>>> framework is supported by ibm...)
>>>
>>> https://www.gateway400.org/documents/Gateway400/Handouts/Get
>>> StartedWithPythonOnIBMi2016.pdf
>>> https://www.youtube.com/watch?v=-fbrQwBKQ_I&t=929s
>>>
>>>
>>>
>>> 2017-03-20 22:42 GMT+00:00 Jim Steil <[email protected]>:
>>>
>>>> I've got 2.7 in my space even though it is labeled 3.4.4.
>>>>
>>>> [image: Inline image 1]
>>>>
>>>> and you can use the python3 command to get into python3
>>>>
>>>> [image: Inline image 2]
>>>>
>>>> -Jim
>>>>
>>>>
>>>> On Mon, Mar 20, 2017 at 5:16 PM, 'DenesL' via web2py-users <
>>>> [email protected]> wrote:
>>>>
>>>>> Litmis only has Python-3.4.4
>>>>>
>>>>>
>>>>> On Monday, March 20, 2017 at 10:08:07 AM UTC-4, Jim S wrote:
>>>>>>
>>>>>> Are you familiar with Aaron Bartell's work and litmis spaces?
>>>>>> spaces.litmis.com
>>>>>>
>>>>>> There you can get a free PASE session on their boxes.  Use the code
>>>>>> BETA when signing up.  Let me know if you have any questions.
>>>>>>
>>>>>> -Jim
>>>>>>
>>>>>> On Mon, Mar 20, 2017 at 8:56 AM, 'DenesL' via web2py-users wrote:
>>>>>>
>>>>>>>
>>>>>>> Last summer uh? Not keeping up with i news lately...
>>>>>>>
>>>>>>> I looked it up as soon as I saw your post today, that is why I said
>>>>>>> it seems to need a modified adapter to map things thru ibm_db.
>>>>>>> It might be fairly easy and I would like to help but the lack of a
>>>>>>> newer i box to test with doesn't help.
>>>>>>>
>>>>>>> Denes
>>>>>>>
>>>>>>> On Monday, March 20, 2017 at 9:31:04 AM UTC-4, Jim S wrote:
>>>>>>>>
>>>>>>>> Yes, support became available for Python 2 and Python 3 last
>>>>>>>> summer.  Came out in Technology Refreshes.  They still have a long way 
>>>>>>>> to
>>>>>>>> go getting more packages supported, but base support is there.  They 
>>>>>>>> also
>>>>>>>> have a local dbapi connector to connect to a DB2/400 database which is 
>>>>>>>> what
>>>>>>>> I'm trying to connect to with the DAL.
>>>>>>>>
>>>>>>>> I don't know where to begin modifying an adapter, looking for help.
>>>>>>>>
>>>>>>>> -Jim
>>>>>>>>
>>>>>>>> On Monday, March 20, 2017 at 8:18:41 AM UTC-5, DenesL wrote:
>>>>>>>>>
>>>>>>>>> Hi Jim
>>>>>>>>>
>>>>>>>>> Python officially supported on i, finally!!
>>>>>>>>> I wish this had happened a while back.
>>>>>>>>>
>>>>>>>>> It seems that this would require a modified adapter in web2py,
>>>>>>>>> sadly I have no access to a current 7.x box to test.
>>>>>>>>>
>>>>>>>>> Denes
>>>>>>>>>
>>>>>>>>> On Saturday, March 18, 2017 at 11:11:34 AM UTC-4, Jim S wrote:
>>>>>>>>>>
>>>>>>>>>> In this example he is connecting using a DB2 connector.  However,
>>>>>>>>>> I'm hoping to use the ibm_db_dbi connector and don't know how to 
>>>>>>>>>> specify it
>>>>>>>>>> on the dal connection.  He is using:
>>>>>>>>>>
>>>>>>>>>> db = DAL('db2://DSN=MYDSN;UID=xxxxx;PWD=xxxxx', 
>>>>>>>>>> migrate_enabled=False)
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> I'm not sure what to put in place of the db2://DSN...
>>>>>>>>>>
>>>>>>>>>> Anyone?
>>>>>>>>>>
>>>>>>>>>> -Jim
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> On Fri, Mar 17, 2017 at 7:38 PM, António Ramos wrote:
>>>>>>>>>>
>>>>>>>>>>> maybe
>>>>>>>>>>> http://www.web2pyslices.com/slice/show/1474/calling-remote-p
>>>>>>>>>>> rogram-on-db2-from-pythonweb2py
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> <#m_-3760345797384795463_m_-6812060605547100479_m_-4672240568881163858_m_6756575263547454350_m_-4783883769032414716_CAERBpoCHvvgNfbffSKAFcDFZTik10ACs69rAY__7rG7whA_5wA@mail.gmail.com_m_-7554748344480484208_269cefbd-24e0-4f4b-98ec-bed31dff4d60@googlegroups.com_c78e0319-5078-4af6-9a39-37e920755dac@googlegroups.com_CAERBpoCttAv9kGK=rqf1z1TiNvGQS-h99VwVWD9JJZ3ZAVeMaw@mail.gmail.com_m_-838279669736982895_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
>>>>>>>>>>>
>>>>>>>>>>> 2017-03-17 21:06 GMT+00:00 Jim S :
>>>>>>>>>>>
>>>>>>>>>>>> Hi
>>>>>>>>>>>>
>>>>>>>>>>>> In a former (and somewhat current) life I was an AS/400 guy.
>>>>>>>>>>>> Our shop still uses the platform though most of my time is spent 
>>>>>>>>>>>> on Python
>>>>>>>>>>>> and web2py now.
>>>>>>>>>>>>
>>>>>>>>>>>> Recently Python became available and officially supported on
>>>>>>>>>>>> IBM i and I'm trying to get web2py running there accessing the 
>>>>>>>>>>>> local
>>>>>>>>>>>> DB2/400 database.  Using the local python on the system I can 
>>>>>>>>>>>> create a
>>>>>>>>>>>> database connection to the local database doing this:
>>>>>>>>>>>>
>>>>>>>>>>>> import ibm_db_dbi as db
>>>>>>>>>>>>
>>>>>>>>>>>> conn = db.connect(database='*LOCAL')
>>>>>>>>>>>>
>>>>>>>>>>>> I'm hoping to find an easy way to convert this into a
>>>>>>>>>>>> connectstring for the DAL so I can have my database created there. 
>>>>>>>>>>>>  The
>>>>>>>>>>>> SQL-flavor it should use would be the same as ODBC-flavored SQL.
>>>>>>>>>>>>
>>>>>>>>>>>> Can anyone give me a clue how to modify the DAL code to connect
>>>>>>>>>>>> to my db?  Any pointers to other articles or links would really be
>>>>>>>>>>>> appreciated.  It would be exciting for me to get this working 
>>>>>>>>>>>> since I could
>>>>>>>>>>>> then show RPG developers how easy it would be to get an 
>>>>>>>>>>>> application on the
>>>>>>>>>>>> web from the AS/400 using python/web2py.
>>>>>>>>>>>>
>>>>>>>>>>>> -Jim
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>> 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 a topic in
>>>>>>> the Google Groups "web2py-users" group.
>>>>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>>>>>> pic/web2py/qrlN5TSSBgs/unsubscribe.
>>>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>>>> [email protected].
>>>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>>>
>>>>>>
>>>>>> --
>>>>> 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 a topic in the
>>>>> Google Groups "web2py-users" group.
>>>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>>>> pic/web2py/qrlN5TSSBgs/unsubscribe.
>>>>> To unsubscribe from this group and all its topics, send an email to
>>>>> [email protected].
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>> --
>>>> 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-users" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> --
>>> 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 a topic in the
>>> Google Groups "web2py-users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/web2py/qrlN5TSSBgs/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> [email protected].
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> 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-users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/web2py/qrlN5TSSBgs/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to