[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    koffice/kspread/plugins/scripting/scripts
From:       Sebastian Sauer <mail () dipe ! org>
Date:       2007-06-22 22:13:28
Message-ID: 1182550408.921500.27413.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 679065 by sebsauer:

Added the yfinance.py script that provides us the KSpread YFINANCE scripting function which uses the 
YAHOO! Finance web service to provide stock trading info.

Samples;
=YFINANCE("YHOO";"20060119";"Open")
=YFINANCE("=C14";"=C15";"=C16")

FEATURE
CC_MAIL:koffice-devel@kde.org



 M  +1 -1      CMakeLists.txt  
 M  +6 -0      scripts.rc  
 AM            yfinance.py  
 M  +3 -4      yweather.py  


--- trunk/koffice/kspread/plugins/scripting/scripts/CMakeLists.txt #679064:679065
@@ -10,5 +10,5 @@
 
 install(FILES
     functions.py
-    yweather.py
+    yfinance.py yweather.py
     DESTINATION ${DATA_INSTALL_DIR}/kspread/scripts/functions)
--- trunk/koffice/kspread/plugins/scripting/scripts/scripts.rc #679064:679065
@@ -29,6 +29,12 @@
     </collection>
     <collection name="functions" text="Functions" comment="Scripting formula functions">
         <script
+            name="yfinance"
+            text="Y! Finance"
+            comment="YAHOO! Finance formula function"
+            interpreter="python"
+            file="functions/yfinance.py" />
+        <script
             name="yweather"
             text="Y! Weather"
             comment="YAHOO! Weather formula function"
** trunk/koffice/kspread/plugins/scripting/scripts/yfinance.py #property svn:executable
   + *
--- trunk/koffice/kspread/plugins/scripting/scripts/yweather.py #679064:679065
@@ -1,8 +1,7 @@
 #!/usr/bin/env kross
 
 """
-Python script that provides additional formula-functions
-to KSpread.
+KSpread python script that provides the YAHOO! Weather formula function.
 
 Yahoo! Terms of Use
 The feeds are provided free of charge for use by individuals and non-profit
@@ -36,8 +35,8 @@
         func.minparam = 1
         func.maxparam = 2
         func.comment = (
-            "The YWEATHER() function uses the YAHOO! Weather Service to "
-            "display the weather of a location. "
+            "The YWEATHER() function uses the YAHOO! Weather Web Service "
+            "to display the weather of a location. "
         )
         func.syntax = "YWEATHER(string;string)"
         func.addParameter("String", "The US zip code, Location ID or cell that contains them.")
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic