Search DominoPower's 11,443 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Using Python to create a command line interpreter for Notes (continued)

Installation of JPython is simple. There are just two other things that you'll need:

  • If you want to run it as a command-line, make sure you have a Java SDK (software development kit) or JRE (Java run-time environment) installed on your PC. It's simpler than using the JVMs inside the Notes client or Web browsers;

  • Ensure that the CLASSPATH includes the relevant Domino Java packages (Notes.jar if it's running on the same machine as a Notes client or Domino server and NCSO.jar if connecting to a remote Domino server).

Figure D displays a brief command line local Notes session (running in the Sun Java SDK 1.2.2 under Windows 98).

FIGURE D


Here you see Notes from Python from Java. Roll over picture for a larger image.

JPython has two main strengths. For one thing, it can be used as a simplified way of writing applets that can do everything Java applets can do, but with Python's easier coding. Python code is compiled to Java bytecodes, so performance is maintained. Secondly, it can be used as a great way of learning and playing around with the Domino Java classes. After all, it's a lot quicker simply to test out a Java class at the command line than to write a Java agent or application and then compile and run it.

Documentation for the Java classes is included in the R5 developer's help database and in the Lotus Toolkit for Java/CORBA available from the Developer's site at http://www.lotus.com.

Using C++ API
Going beyond the Java and COM classes is beyond the scope of this article, but here are some pointers for why you'd want to do it and how it can be achieved.

There are two main reasons to use the API (application programming interface). For one thing, COM classes are limited to Win32 platforms. For another, Lotus only has a limited amount of Notes functionality via LotusScript classes, COM classes, or Java classes. Rich text fields are one major area of limitation, but there are many others, such as read/write access to the database design elements. The C++ API gives access to practically everything, from design elements to the server console.

Converting the C++ API to another language is a big undertaking. Fortunately, there's some help for anyone who wishes to do so in a project called SWIG, which produces a utility to generate Python classes automatically (or optionally with some manual intervention) from C++ class definitions. It's still non-trivial to start using C++ classes via Python, but SWIG can make this sort of process a great deal easier, and the rewards--the ease of use of Python combined with the power of the Notes C++ API--may make this a worthwhile option for you.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
Syncing Notes with Android phones
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Online safety for virtual learning
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Seek and find: Strategies to locate filed-away emails fast
-- Advertisement --

Find unused Lotus Notes groups and clean up your address book
Have you ever wanted to get rid of old Lotus Notes groups that were cluttering up your address book, but you weren't sure if they were used? Find Unused Groups can help.

Find Unused Groups will check your ACL, mail, multi purpose and server groups to help you determine if they are used, and who uses them.

Learn how to easily clean up your address book.

-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login