Re: [t2t] First post, possibly an odd request..

2012-08-03 Thread Nicholas
On a Nokia E61 running 3.0633.09.04 firmware

Python 1.4.5 with script shell (which is based on Python 2.2) I was
able to convert the sample.t2t file correctly with today's date

I had to find getopt.py (based on the same version of python), I used
a plain version not a pys60 version (couldn't find one)
I loaded txt2tags.py (version 2.5) and getopt.py modules from the
interactive script shell:
import sys
sys.path.append(e:\\Python)

This was needed because the c:\resource folder which contains the
python modules was inaccessible to me.

I could then run txt2tags.exec_command_line :D

txt2tags.exec_command_line( '-t html -i e:\\sample.t2t'.split() )
sample.t2t was on the minisd card. It wrote out the file into the same folder.

Absolutely stoked! Thank YOU!


On 7/31/12, Aurelio Jargas ve...@aurelio.net wrote:
 Thanks Eric!

 On Mon, Jul 30, 2012 at 4:30 PM, Forgeot Eric eforg...@yahoo.fr wrote:


 Note to Eric: I think these instructions will be useful in the
 website|wiki.


 done: http://wiki.txt2tags.org/index.php/Main/Tips





 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 txt2tags-list mailing list
 https://lists.sourceforge.net/lists/listinfo/txt2tags-list




 --
 Aurelio | www.aurelio.net | @oreio


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] First post, possibly an odd request..

2012-08-03 Thread Nicholas
Seeing as this going into the wiki here are some corrections:

Nokia E61 uses the S60v3 platform on Symbian 9.1 but if you can manage
to get Python and the Python Shell Script on your Symbian phone then
this should work on those phones as well.

Python PyS60 1.4.5 is easiest to run on an e61, PyS60 2.0.0 is
difficult to load (I could never get it to run). PyS60 1.4.5 is based
on Python 2.2--txt2tags v2.5 compatible.

Instructions:
Install PyS60 Python 1.4.5 and Python Script Shell 1.4.5
http://www.developer.nokia.com/Community/Wiki/Archived:PyS60_1.4.5_Quick_Start

Download from the web a Python 2.2 version of getopt.py and txt2tags-2.5

Rename the txt2tags script to txt2tags.py, so you can import it as a
module. There's a handy function exec_command_line() that you can use.

import sys #will allow you to load your getopt.py script and load
txt2tags.py module from somewhere else other than c:\\resource, this
folder is off-limits in the e61 and is where the python modules are
stored when PyS60 is installed to the phone.

sys.path.append(c:\\Python) #please note incorrectly written as
e:\\Python in the list message above as the Python folder is on the
c:\\ drive when installed to the phone

import getopt #needed to run txt2tags
import txt2tags #now you can run txt2tags commands on *.t2t files

From Aurelio's example above:

The txt2tags built-in command-line expects to receive the full command
line as a list of tokens, except the very first item. Examples:

txt2tags --help  ---  ['--help']

txt2tags -t html -i sample.t2t  ---  ['-t', 'html', '-i', 'sample.t2t']

To make things easier, you can use split to create the list:

'-t html -i sample.t2t'.split()

So, just enter in Python shell, import txt2tags and have fun:

 import txt2tags
 txt2tags.exec_command_line( '-t html -i e:\\samples/sample.t2t'.split() )
txt2tags wrote samples/sample.html #e:\\ for minisd card on the e61
c:\\ for phone memory


Txt2tags will write the converted file in the same folder as the *.t2t file.

Kind Regards, Nicholas

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] First post, possibly an odd request..

2012-07-30 Thread Florent Gallaire
see https://code.google.com/p/txt2tags/issues/detail?id=39

Cheers

Florent

On Mon, Jul 30, 2012 at 9:28 AM, Nicholas
independentcommerc...@gmail.com wrote:
 Hello everyone, first post, and apologies if my question seems a bit
 odd. It might need to go to the devs list

 I have an old E61 Nokia phone, I can run python 1.4.5 on it. I've
 tried in the past to get an older version of txt2tags to run on it. I
 never got it to run, from memory I tried to import as many modules as
 I could see mentioned.

 I almost got it to run in the past but I think the problem is there is
 no command line interface. Python script shell 1.4.5 and python for
 d60 is installed.

 So sorry for the odd request has anyone got an idea how to get the
 thing to work? Any guesses?

 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 txt2tags-list mailing list
 https://lists.sourceforge.net/lists/listinfo/txt2tags-list



-- 
FLOSS Engineer  Lawyer

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] First post, possibly an odd request..

2012-07-30 Thread Aurelio Jargas
Hi Nicholas,

Try version 2.4, which is the last compatible with Python 1.x. You may try
older versions as well.

You say you don't have command line, but have access to the Python
interactive shell. That's fine.

Rename the txt2tags script to txt2tags.py, so you can import it as a
module. There's a handy function exec_command_line() that you can use. It
expects to receive the full command line as a list of tokens, except the
very first item. Examples:

txt2tags --help  ---  ['--help']

txt2tags -t html -i sample.t2t  ---  ['-t', 'html', '-i', 'sample.t2t']

To make things easier, you can use split to create the list:

'-t html -i sample.t2t'.split()

So, just enter in Python shell, import txt2tags and have fun:

 import txt2tags
 txt2tags.exec_command_line( '-t html -i samples/sample.t2t'.split() )
txt2tags wrote samples/sample.html


Besides that, you can also use it the harder way, calling the specific
functions, as shown in samples/module/*.py files.

Note to Eric: I think these instructions will be useful in the website|wiki.



On Mon, Jul 30, 2012 at 5:28 AM, Florent Gallaire fgalla...@gmail.comwrote:

 see https://code.google.com/p/txt2tags/issues/detail?id=39

 Cheers

 Florent

 On Mon, Jul 30, 2012 at 9:28 AM, Nicholas
 independentcommerc...@gmail.com wrote:
  Hello everyone, first post, and apologies if my question seems a bit
  odd. It might need to go to the devs list
 
  I have an old E61 Nokia phone, I can run python 1.4.5 on it. I've
  tried in the past to get an older version of txt2tags to run on it. I
  never got it to run, from memory I tried to import as many modules as
  I could see mentioned.
 
  I almost got it to run in the past but I think the problem is there is
  no command line interface. Python script shell 1.4.5 and python for
  d60 is installed.
 
  So sorry for the odd request has anyone got an idea how to get the
  thing to work? Any guesses?
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond. Discussions
  will include endpoint security, mobile security and the latest in malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  txt2tags-list mailing list
  https://lists.sourceforge.net/lists/listinfo/txt2tags-list



 --
 FLOSS Engineer  Lawyer


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 txt2tags-list mailing list
 https://lists.sourceforge.net/lists/listinfo/txt2tags-list




-- 
Aurelio | www.aurelio.net | @oreio
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] First post, possibly an odd request..

2012-07-30 Thread Nicholas
Thanks, really appreciate the detailed responses. I'll see how I go
and report back with any results.

On 7/31/12, Aurelio Jargas ve...@aurelio.net wrote:
 Hi Nicholas,

 Try version 2.4, which is the last compatible with Python 1.x. You may try
 older versions as well.

 You say you don't have command line, but have access to the Python
 interactive shell. That's fine.

 Rename the txt2tags script to txt2tags.py, so you can import it as a
 module. There's a handy function exec_command_line() that you can use. It
 expects to receive the full command line as a list of tokens, except the
 very first item. Examples:

 txt2tags --help  ---  ['--help']

 txt2tags -t html -i sample.t2t  ---  ['-t', 'html', '-i',
 'sample.t2t']

 To make things easier, you can use split to create the list:

 '-t html -i sample.t2t'.split()

 So, just enter in Python shell, import txt2tags and have fun:

 import txt2tags
 txt2tags.exec_command_line( '-t html -i samples/sample.t2t'.split() )
 txt2tags wrote samples/sample.html


 Besides that, you can also use it the harder way, calling the specific
 functions, as shown in samples/module/*.py files.

 Note to Eric: I think these instructions will be useful in the
 website|wiki.



 On Mon, Jul 30, 2012 at 5:28 AM, Florent Gallaire
 fgalla...@gmail.comwrote:

 see https://code.google.com/p/txt2tags/issues/detail?id=39

 Cheers

 Florent

 On Mon, Jul 30, 2012 at 9:28 AM, Nicholas
 independentcommerc...@gmail.com wrote:
  Hello everyone, first post, and apologies if my question seems a bit
  odd. It might need to go to the devs list
 
  I have an old E61 Nokia phone, I can run python 1.4.5 on it. I've
  tried in the past to get an older version of txt2tags to run on it. I
  never got it to run, from memory I tried to import as many modules as
  I could see mentioned.
 
  I almost got it to run in the past but I think the problem is there is
  no command line interface. Python script shell 1.4.5 and python for
  d60 is installed.
 
  So sorry for the odd request has anyone got an idea how to get the
  thing to work? Any guesses?
 
 
 --
  Live Security Virtual Conference
  Exclusive live event will cover all the ways today's security and
  threat landscape has changed and how IT managers can respond.
  Discussions
  will include endpoint security, mobile security and the latest in
  malware
  threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
  ___
  txt2tags-list mailing list
  https://lists.sourceforge.net/lists/listinfo/txt2tags-list



 --
 FLOSS Engineer  Lawyer


 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 txt2tags-list mailing list
 https://lists.sourceforge.net/lists/listinfo/txt2tags-list




 --
 Aurelio | www.aurelio.net | @oreio


--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] First post, possibly an odd request..

2012-07-30 Thread Forgeot Eric


Note to Eric: I think these instructions will be useful in the website|wiki.



done: http://wiki.txt2tags.org/index.php/Main/Tips--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list


Re: [t2t] First post, possibly an odd request..

2012-07-30 Thread Aurelio Jargas
Thanks Eric!

On Mon, Jul 30, 2012 at 4:30 PM, Forgeot Eric eforg...@yahoo.fr wrote:


 Note to Eric: I think these instructions will be useful in the
 website|wiki.


 done: http://wiki.txt2tags.org/index.php/Main/Tips





 --
 Live Security Virtual Conference
 Exclusive live event will cover all the ways today's security and
 threat landscape has changed and how IT managers can respond. Discussions
 will include endpoint security, mobile security and the latest in malware
 threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
 ___
 txt2tags-list mailing list
 https://lists.sourceforge.net/lists/listinfo/txt2tags-list




-- 
Aurelio | www.aurelio.net | @oreio
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
txt2tags-list mailing list
https://lists.sourceforge.net/lists/listinfo/txt2tags-list