From laslopes@ime.eb.br Wed Mar 1 15:20:02 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id A3AF43B2B3B for ; Wed, 1 Mar 2006 15:20:02 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01443-01 for ; Wed, 1 Mar 2006 15:20:01 -0500 (EST) Received: from correio.ime.eb.br (correio.ime.eb.br [200.20.120.43]) by menubar.gnome.org (Postfix) with ESMTP id 76D113B14D0 for ; Wed, 1 Mar 2006 15:19:57 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by correio.ime.eb.br (Postfix) with ESMTP id 48070651894 for ; Wed, 1 Mar 2006 17:19:51 -0300 (BRT) Received: from correio.ime.eb.br ([127.0.0.1]) by localhost (aries2.ime.eb.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05732-03 for ; Wed, 1 Mar 2006 17:19:51 -0300 (BRT) Received: from laslopes (unknown [200.20.217.25]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by correio.ime.eb.br (Postfix) with ESMTP id 045B56518AB for ; Wed, 1 Mar 2006 17:19:51 -0300 (BRT) From: "laslopes" To: Date: Wed, 1 Mar 2006 17:19:46 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0000_01C63D54.590561F0" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcY9bXucZ3fR4xecRoeErn+m29nqkQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 Message-Id: <20060301201951.045B56518AB@correio.ime.eb.br> X-Virus-Scanned: by amavisd-new at aries2.ime.eb.br X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.117 tagged_above=-999 required=2 tests=[BAYES_50=0.001, HTML_MESSAGE=0.001, HTML_TEXT_AFTER_BODY=0.115] X-Spam-Score: 0.117 X-Spam-Level: Subject: Python Plugin in Windows X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Mar 2006 20:20:02 -0000 This is a multi-part message in MIME format. ------=_NextPart_000_0000_01C63D54.590561F0 Content-Type: text/plain; charset="windows-1250" Content-Transfer-Encoding: 7bit Hi, We are using Gnumeric with very good results. Some students have to use Windows then Linux. Is it possible to use the same functions developed with Python under Linux in Windows? Wich plugin we have to install? Thanks in advance. Silveira Lopes IME Rio de Janeiro -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.375 / Virus Database: 268.1.1/271 - Release Date: 28/2/2006 ------=_NextPart_000_0000_01C63D54.590561F0 Content-Type: text/html; charset="windows-1250" Content-Transfer-Encoding: quoted-printable

Hi,

We are using Gnumeric with very good = results.

Some students have to use Windows then = Linux.

Is it possible to use the same functions = developed with Python under Linux in Windows?

Wich plugin we have to = install?

Thanks in = advance.

Silveira Lopes IME Rio de = Janeiro


--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.1.1/271 - Release Date: = 28/2/2006

------=_NextPart_000_0000_01C63D54.590561F0-- From renan.felix@gmail.com Sat Mar 4 15:07:57 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF4593B2129 for ; Sat, 4 Mar 2006 15:07:56 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27943-02 for ; Sat, 4 Mar 2006 15:07:56 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by menubar.gnome.org (Postfix) with ESMTP id E1BFE3B20C6 for ; Sat, 4 Mar 2006 15:07:55 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i3so1135101wra for ; Sat, 04 Mar 2006 12:07:55 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:subject:from:to:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; b=DjtN+FNWW0EbxLIMzzMg8+umkMHl8ta0GriQpdm5yhZcBPVUISomrQOsvaUmRzxJ1/isM/XCzqqOmQg8Uc8AEX5BXp6OawpQj1uTGCntEVN40n5zizhvYqqzvv1F3YCt4FoWwL7AlOQUqyXzEzVafquDIcHGbBqhWoKHObEStsY= Received: by 10.54.91.7 with SMTP id o7mr3008744wrb; Sat, 04 Mar 2006 12:07:50 -0800 (PST) Received: from ?192.168.0.102? ( [70.121.100.234]) by mx.gmail.com with ESMTP id 7sm483541wrh.2006.03.04.12.07.51; Sat, 04 Mar 2006 12:07:54 -0800 (PST) From: "Renan J. Felix" To: gnumeric-list@gnome.org Content-Type: text/plain Date: Sat, 04 Mar 2006 15:07:59 -0500 Message-Id: <1141502879.14105.6.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Dropline GNOME Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.259 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001, WEIRD_QUOTING=1.341] X-Spam-Score: -1.259 X-Spam-Level: X-Mailman-Approved-At: Mon, 06 Mar 2006 09:49:41 -0500 Subject: database connection syntax X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Mar 2006 20:07:57 -0000 I'm trying to connect to an SQLite database but I'm having trouble with the syntax. Typing the following command ina cell: =execSQL("SalesTest","","","select * from locations") returns only "FR" in the cell. I know this table has two records with 3 fields in each record. I was expecting "FR, Tolouse, Tolouse,France" and another row with more data. Is there something wrong with my syntax in the execSQL statement? There is no documentation on this Gnumeric/gda feature. I will write a user guide once I figure this out so any help is appreciated. Thanks! From david@stanaway.net Mon Mar 6 11:46:09 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 3150D3B1454 for ; Mon, 6 Mar 2006 11:46:07 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03001-01 for ; Mon, 6 Mar 2006 11:46:04 -0500 (EST) Received: from mail.dialmex.net (67.107.77.98.ptr.us.xo.net [67.107.77.98]) by menubar.gnome.org (Postfix) with ESMTP id B5FF13B0E1F for ; Mon, 6 Mar 2006 11:46:03 -0500 (EST) Received: from david.dialmex.net (dmxnocws13.dialmex.net [67.107.77.78]) by mail.dialmex.net (Postfix) with ESMTP id 89E77EE993; Mon, 6 Mar 2006 10:15:59 -0600 (CST) From: David Stanaway To: "Renan J. Felix" In-Reply-To: <1141502879.14105.6.camel@localhost> References: <1141502879.14105.6.camel@localhost> Content-Type: text/plain Date: Mon, 06 Mar 2006 10:46:01 -0600 Message-Id: <1141663561.4295.9.camel@dmxnocws13.dialmex.net> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.793 tagged_above=-999 required=2 tests=[AWL=-0.670, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, WEIRD_QUOTING=1.341] X-Spam-Score: -1.793 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: database connection syntax X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2006 16:46:09 -0000 On Sat, 2006-03-04 at 15:07 -0500, Renan J. Felix wrote: > I'm trying to connect to an SQLite database but I'm having trouble with > the syntax. Typing the following command ina cell: > =execSQL("SalesTest","","","select * from locations") returns only "FR" > in the cell. I know this table has two records with 3 fields in each > record. I was expecting "FR, Tolouse, Tolouse,France" and another row > with more data. Is there something wrong with my syntax in the execSQL > statement? There is no documentation on this Gnumeric/gda feature. I > will write a user guide once I figure this out so any help is > appreciated. Thanks! You probably need to use the syntax for a matrix returning function. Select the rows and columns you want to be populated with the result, and enter the forumula, whne done entering the forumal, Ctrl-Shift-Enter rather than Enter. Alternately, use syntax like this: Cell A1 - {=execSQL("SalesTest","","select * from locations")}(3,2)[0][0] Cell B1 - {=execSQL("SalesTest","","select * from locations")}(3,2)[0][1] Cell A2 - {=execSQL("SalesTest","","select * from locations")}(3,2)[1][0] Cell B2 - {=execSQL("SalesTest","","select * from locations")}(3,2)[1][1] Cell A3 - {=execSQL("SalesTest","","select * from locations")}(3,2)[2][0] Cell B3 - {=execSQL("SalesTest","","select * from locations")}(3,2)[2][1] I haven't used the SQL connectivity, so I could be mistaken, but this is how the matrix functions like transpose work. From mwelinder@gmail.com Tue Mar 7 09:22:09 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id D137C3B3562 for ; Tue, 7 Mar 2006 09:22:07 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12482-02 for ; Tue, 7 Mar 2006 09:22:03 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.201]) by menubar.gnome.org (Postfix) with ESMTP id 304413B3634 for ; Tue, 7 Mar 2006 09:20:44 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i20so1400634wra for ; Tue, 07 Mar 2006 06:20:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ls6mTPcqef53uCa6SmjSjqEXr4JwkFGLLdnXxj5LQEQoK/B6uGPhucoemc2/RT/e4qfFjZ31AvyWHQlusApyRslT0udSQ0L8eN1DgWGnASA/ZwSH6gsI2r/C8MHoSdxRn9BtGkpiYyRmdYmtYKzva93dRTEIyj9WEga6NWxNX/Q= Received: by 10.35.43.10 with SMTP id v10mr620352pyj; Tue, 07 Mar 2006 06:20:43 -0800 (PST) Received: by 10.35.39.13 with HTTP; Tue, 7 Mar 2006 06:20:43 -0800 (PST) Message-ID: <118833cc0603070620q4617aff4ic62a4d6381147a3a@mail.gmail.com> Date: Tue, 7 Mar 2006 09:20:43 -0500 From: "Morten Welinder" To: "Davide Montanari" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.291 tagged_above=-999 required=2 tests=[AWL=0.309, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.291 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: cell implementation X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Mar 2006 14:22:09 -0000 There is, at present, no GUI to do what you want. The underlying support is present, though, but you would have to enter those formats ("conditional formats") using (say) Excel. Morten From tspalink@telemetry-investments.com Wed Mar 8 16:09:21 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id EB6023B1B90 for ; Wed, 8 Mar 2006 16:09:20 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27687-07 for ; Wed, 8 Mar 2006 16:09:19 -0500 (EST) Received: from mail1.telemetry-investments.com (209-166-240-202.cust.walrus.com [209.166.240.202]) by menubar.gnome.org (Postfix) with ESMTP id 16C4C3B16A7 for ; Wed, 8 Mar 2006 16:09:18 -0500 (EST) Received: from ti20.telemetry-investments.com (ti20 [192.168.8.20]) by ti41.telemetry-investments.com (Postfix) with ESMTP id 2014810117 for ; Wed, 8 Mar 2006 16:09:16 -0500 (EST) Received: by ti20.telemetry-investments.com (Postfix, from userid 369) id 121452807C; Wed, 8 Mar 2006 16:09:16 -0500 (EST) Date: Wed, 8 Mar 2006 16:09:16 -0500 From: Tammo Spalink To: gnumeric-list@gnome.org Message-ID: <20060308210915.GF6394@ti20.telemetry-investments.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="hQiwHBbRI9kgIhsi" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.922 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, HOT_NASTY=0.157, TW_GT=0.077, TW_PW=0.077, TW_TP=0.077, TW_WB=0.077, TW_WU=0.077] X-Spam-Score: -1.922 X-Spam-Level: Subject: [patch for 1.6.2] dot-file locking X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: geeks@telemetry-investments.com List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Mar 2006 21:09:21 -0000 --hQiwHBbRI9kgIhsi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline This patch adds locking capabilities to gnumeric version 1.6.2, preventing modification of the same workbook by multiple users or program instances. The mechanism used is creation of hidden (on UNIX at least) lock files (lock filename syntax: DOT DOT lock). A lock file is created for each named workbook that is opened. The lock file contains the ascii string "user@host (uid xxx, pid xxx)" to identify the holder of the lock. If a locked workbook is opened by gnumeric, the user will be informed of the lock and be told of the current lock holder (and some explanation of why the file might be locked). The SAVE functionality will also be disabled for workbooks where the lock is held by an external party. To save data, the user must use SAVE-AS. Attempts are made to discover failures when they occur (such as a lockfile being deleted by a crafty user), and to tolerate them when possible. I have done some testing to verify that locking works in the obvious foreseeable cases. As an aside, there was some discussion on this list of implementing similar locking mechanisms a few years back. From what I have gleaned, my patch should exceed the functionality of those earlier contributions. Hopefully others find it useful. Constructive comments (or bug reports) are appreciated. Cheers, Tammo --hQiwHBbRI9kgIhsi Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gnumeric-dotlocking-u6.patch" --- gnumeric-1.6.2/src/workbook-control-gui.h.dotlocking 2005-05-03 14:38:59.000000000 -0400 +++ gnumeric-1.6.2/src/workbook-control-gui.h 2006-03-08 15:56:05.000000000 -0500 @@ -41,9 +41,14 @@ void wbcg_copy_toolbar_visibility void wbcg_toggle_end_mode (WorkbookControlGUI *wbcg); void wbcg_set_end_mode (WorkbookControlGUI *wbcg, gboolean flag); void wbcg_set_transient_for (WorkbookControlGUI *wbcg, GtkWindow *window); +void wbcg_save_set_sensitivity (WorkbookControlGUI *wbcg, gboolean state); + +void wbcg_locked_file_dialog (WorkbookControl *wbc, const char *data, const char *msg); + + PangoFontDescription *wbcg_get_font_desc (WorkbookControlGUI *wbcg); #endif /* GNUMERIC_WORKBOOK_CONTROL_GUI_H */ --- /dev/null 2006-02-28 19:57:22.510895250 -0500 +++ gnumeric-1.6.2/src/flock.h 2006-03-08 15:56:05.000000000 -0500 @@ -0,0 +1,10 @@ +#ifndef FLOCK_H +#define FLOCK_H + +char *flock_acquire (const char *); + +char *flock_verify (const char *); + +gboolean flock_release (const char *); + +#endif /* FLOCK_H */ --- gnumeric-1.6.2/src/workbook-view.c.dotlocking 2005-09-15 21:27:13.000000000 -0400 +++ gnumeric-1.6.2/src/workbook-view.c 2006-03-08 15:56:05.000000000 -0500 @@ -1,7 +1,8 @@ -/* vim: set sw=8: */ +/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + /* * workbook-view.c: View functions for the workbook * * Copyright (C) 2000-2004 Jody Goldberg (jody@gnome.org) * * This program is free software; you can redistribute it and/or @@ -21,12 +22,13 @@ */ #include #include "gnumeric.h" #include "workbook-view.h" #include "workbook-control-priv.h" +#include "workbook-control-gui.h" #include "workbook.h" #include "application.h" #include "sheet.h" #include "sheet-view.h" #include "sheet-merge.h" #include "sheet-style.h" @@ -59,12 +61,14 @@ #include #include #include #include "mathfunc.h" #include +#include "flock.h" + /* WorkbookView signals */ enum { LAST_SIGNAL }; Workbook * @@ -578,12 +582,14 @@ workbook_view_new (Workbook *wb) wbv->show_horizontal_scrollbar = TRUE; wbv->show_vertical_scrollbar = TRUE; wbv->show_notebook_tabs = TRUE; wbv->do_auto_completion = gnm_app_use_auto_complete (); wbv->is_protected = FALSE; + workbook_set_externally_locked (wb, FALSE); + /* Set the default operation to be performed over selections */ wbv->auto_expr = NULL; wbv->auto_expr_desc = NULL; wbv->auto_expr_value_as_string = NULL; wbv->auto_expr_use_max_precision = FALSE; wb_view_auto_expr (wbv, _("Sum"), "sum"); @@ -644,12 +650,72 @@ wbv_save_to_uri (WorkbookView *wbv, GOFi if (!gnumeric_io_error_occurred (io_context)) go_cmd_context_error_export (GO_CMD_CONTEXT (io_context), msg); g_free (msg); } +void +wb_view_adapt_to_locking (WorkbookView *wbv, + const char *lockdata, + WbvLockNotification ln) +{ + char *uri, *msg, *tmp_data; + const char *raw_msg; + + if ((ln != WBV_EXT_LOCK_SAVE) && (ln != WBV_EXT_LOCK_SAVEAS)) { + WORKBOOK_VIEW_FOREACH_CONTROL (wbv, control, wbcg_save_set_sensitivity (control, FALSE);); + } + + switch (ln) { + case WBV_EXT_LOCK_OPEN: + raw_msg = "The workbook '%s' is locked, which should mean that " + "someone else is currently using it. The workbook " + "will be opened, but saving changes will be disabled " + "to prevent the possibility of conflicting changes by " + "concurrent users. Use the SAVE AS menu action to " + "store any changes under a new name. Otherwise try " + "re-opening the workbook later."; + break; + case WBV_EXT_LOCK_SAVE: + raw_msg = "Saving of workbook '%s' has been disabled. Use the " + "SAVE AS menu action to store any changes under a new name."; + break; + case WBV_EXT_LOCK_SAVEAS: + raw_msg = "The workbook '%s' is locked. This likely means that " + "someone else is currently using it. To prevent the possibility " + "of conflicting changes by concurrent users, saving to this " + "workbook has been disabled."; + break; + case WBV_SELF_LOCK_FAULT: + raw_msg = "The lock for workbook '%s' has been removed or damaged. " + "This is unexpected and is probably a sign that something " + "has gone wrong. To prevent the possibility of conflicting " + "changes by concurrent users, saving to this workbook has " + "been disabled."; + break; + default: + g_assert_not_reached(); + } + + uri = workbook_get_uri (wb_view_workbook (wbv)); + if (lockdata == NULL) { + tmp_data = flock_verify (uri); + } else { + tmp_data = lockdata; + } + msg = g_strdup_printf (raw_msg, g_path_get_basename (uri)); + + WORKBOOK_VIEW_FOREACH_CONTROL (wbv, control, + wbcg_locked_file_dialog(control, tmp_data, msg); break;); + + if (lockdata == NULL) { + g_free (tmp_data); + } + g_free (msg); +} + /** * wb_view_save_as: * @wbv : Workbook View * @fs : GOFileSaver object * @uri : URI to save as. * @context : @@ -664,21 +730,34 @@ gboolean wb_view_save_as (WorkbookView *wbv, GOFileSaver *fs, char const *uri, GOCmdContext *context) { IOContext *io_context; Workbook *wb; gboolean has_error, has_warning; + char *lockdata; g_return_val_if_fail (IS_WORKBOOK_VIEW (wbv), FALSE); g_return_val_if_fail (IS_GO_FILE_SAVER (fs), FALSE); g_return_val_if_fail (uri != NULL, FALSE); g_return_val_if_fail (IS_GO_CMD_CONTEXT (context), FALSE); wb = wb_view_workbook (wbv); io_context = gnumeric_io_context_new (context); + if ((lockdata = flock_acquire(uri)) != NULL) { + wb_view_adapt_to_locking (wbv, lockdata, WBV_EXT_LOCK_SAVEAS); + g_free (lockdata); + return FALSE; + } + if (! workbook_externally_locked (wb)) { + flock_release (workbook_get_uri(wb)); + } else { + workbook_set_externally_locked (wbv->wb, FALSE); + WORKBOOK_VIEW_FOREACH_CONTROL (wbv, control, wbcg_save_set_sensitivity (control, TRUE);); + } + go_cmd_context_set_sensitive (context, FALSE); wbv_save_to_uri (wbv, fs, uri, io_context); go_cmd_context_set_sensitive (context, TRUE); has_error = gnumeric_io_error_occurred (io_context); has_warning = gnumeric_io_warning_occurred (io_context); @@ -710,17 +789,30 @@ gboolean wb_view_save (WorkbookView *wbv, GOCmdContext *context) { IOContext *io_context; Workbook *wb; GOFileSaver *fs; gboolean has_error, has_warning; + char *lockdata; g_return_val_if_fail (IS_WORKBOOK_VIEW (wbv), FALSE); g_return_val_if_fail (IS_GO_CMD_CONTEXT (context), FALSE); wb = wb_view_workbook (wbv); + + if ((lockdata = flock_verify (workbook_get_uri(wb))) != NULL) { + if (workbook_externally_locked (wb)) { + wb_view_adapt_to_locking (wbv, lockdata, WBV_EXT_LOCK_SAVE); + } else { + workbook_set_externally_locked (wbv->wb, TRUE); + wb_view_adapt_to_locking (wbv, lockdata, WBV_SELF_LOCK_FAULT); + } + g_free (lockdata); + return FALSE; + } + fs = workbook_get_file_saver (wb); if (fs == NULL) fs = go_file_saver_get_default (); io_context = gnumeric_io_context_new (context); if (fs == NULL) @@ -1019,18 +1111,29 @@ wb_view_new_from_uri (char const *uri, g_return_val_if_fail (uri != NULL, NULL); input = go_file_open (uri, &err); if (input != NULL) { WorkbookView *res; + char *lockdata; g_printerr ("Reading %s\n", uri); res = wb_view_new_from_input (input, optional_fmt, io_context, optional_enc); g_object_unref (G_OBJECT (input)); + + if ((lockdata = flock_acquire(uri)) != NULL) { + /* There is apparently no GUI existing yet (at least in most cases), + so we cannot disable (grey out) SAVE here... Only make a note for later. */ + workbook_set_externally_locked (res->wb, TRUE); + g_free (lockdata); + } else { + workbook_set_externally_locked (res->wb, FALSE); + } + return res; } if (err != NULL) { if (err->message != NULL) msg = g_strdup (err->message); --- gnumeric-1.6.2/src/workbook.c.dotlocking 2005-09-21 00:46:42.000000000 -0400 +++ gnumeric-1.6.2/src/workbook.c 2006-03-08 15:56:05.000000000 -0500 @@ -37,12 +37,14 @@ #include "gutils.h" #include "gnm-marshalers.h" #include "style-color.h" #include #include +#include "flock.h" + #ifdef WITH_GTK #ifdef WITH_GNOME #include #else #include /* for gtk_main_quit */ #endif @@ -69,20 +71,36 @@ static void cb_saver_finalize (Workbook *wb, GOFileSaver *saver) { g_return_if_fail (IS_GO_FILE_SAVER (saver)); g_return_if_fail (IS_WORKBOOK (wb)); g_return_if_fail (wb->file_saver == saver); wb->file_saver = NULL; +} + +gboolean +workbook_externally_locked (Workbook *wb) +{ + return wb->externally_locked; +} + +void +workbook_set_externally_locked (Workbook *wb, gboolean state) +{ + wb->externally_locked = state; } static void workbook_dispose (GObject *wb_object) { Workbook *wb = WORKBOOK (wb_object); GList *sheets, *ptr; + if (! wb->externally_locked) { + flock_release(wb->uri); + } + wb->during_destruction = TRUE; if (wb->file_saver) workbook_set_saveinfo (wb, wb->file_format_level, NULL); /* Remove all the sheet controls to avoid displaying while we exit */ --- gnumeric-1.6.2/src/workbook-priv.h.dotlocking 2005-03-16 17:28:00.000000000 -0500 +++ gnumeric-1.6.2/src/workbook-priv.h 2006-03-08 15:56:05.000000000 -0500 @@ -17,12 +17,14 @@ struct _Workbook { GHashTable *sheet_order_dependents; GHashTable *sheet_local_functions; gboolean modified; gboolean is_placeholder; + gboolean externally_locked; + gchar *uri; FileFormatLevel file_format_level; GOFileSaver *file_saver; /* Undo support */ GSList *undo_commands; --- /dev/null 2006-02-28 19:57:22.510895250 -0500 +++ gnumeric-1.6.2/src/flock.c 2006-03-08 15:56:05.000000000 -0500 @@ -0,0 +1,238 @@ +/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "gnumeric.h" +#include "flock.h" + +#ifndef O_NOFOLLOW +#define O_NOFOLLOW (0) +#endif + +const unsigned max_lockdata_sz = 128; + +char * gen_lockname (const char *); +char * gen_lockdata (void); + +char * +gen_lockname (const char *uri) +{ + char *dir, *base, *lockname; + const char *s0 = "/."; + const char *s1 = ".lock"; + + if ((uri == NULL) || (strlen(uri) == 0) || (strncmp (uri, "file://", 7) != 0)) { + return NULL; + } + + dir = go_dirname_from_uri (uri, TRUE); + base = go_basename_from_uri (uri); + lockname = (char *) g_malloc (strlen (dir) + strlen (base) + strlen (s0) + strlen (s1) + 1); + sprintf (lockname, "%s%s%s%s", dir, s0, base, s1); + g_free (base); + g_free (dir); + + /* XXX debugging */ + /* g_printerr ("lockname is '%s'\n", lockname); */ + + return lockname; +} + +char * +gen_lockdata () +{ + char hostname [HOST_NAME_MAX + 1]; + struct passwd *pw; + uid_t uid; + pid_t pid; + char *uid_str, *pid_str; + char *data; + const char *s0 = "@"; + const char *s1 = " (uid "; + const char *s2 = ", pid "; + const char *s3 = ")"; + + if (gethostname (hostname, HOST_NAME_MAX) == -1) { + return NULL; + } + uid = getuid (); + pid = getpid (); + if ((pw = getpwuid (uid)) == NULL) { + return NULL; + } + uid_str = g_strdup_printf ("%lu", (long unsigned) uid); + pid_str = g_strdup_printf ("%lu", (long unsigned) pid); + data = (char *) g_malloc (MIN(strlen (pw->pw_name) + strlen (hostname) + strlen (uid_str) + + strlen (pid_str) + strlen (s0) + strlen (s1) + strlen (s2) + + strlen (s3) + 1, max_lockdata_sz)); + snprintf (data, max_lockdata_sz - 1, "%s%s%s%s%s%s%s%s", + pw->pw_name, s0, hostname, s1, uid_str, s2, pid_str, s3); + g_free(uid_str); + g_free(pid_str); + + return data; +} + +char * +flock_acquire (const char* uri) +{ + char *lockname = NULL; + char *lockdata = NULL; + const char *err_msg = NULL; + int fd; + + lockname = gen_lockname (uri); + if (lockname == NULL) { + err_msg = "illegal lockname"; + goto flock_lock_finish; + } + + /* XXX debugging */ + /* g_printerr ("locking '%s'\n", lockname); */ + + fd = g_open (lockname, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + if (fd != -1) { + int w_rc, c_rc; + + lockdata = gen_lockdata (); + if (lockdata == NULL) { + err_msg = "lock data generation error"; + goto flock_lock_finish; + } + + w_rc = write (fd, lockdata, strlen (lockdata) + 1); + g_free(lockdata); + lockdata = NULL; + c_rc = close (fd); + + if (w_rc == -1) { + err_msg = "lock write failure"; + goto flock_lock_finish; + } + if (c_rc == -1) { + err_msg = "lock close failure"; + goto flock_lock_finish; + } + } else if (g_file_error_from_errno(errno) == G_FILE_ERROR_EXIST) { + GError *error = NULL; + + if (! g_file_get_contents (lockname, &lockdata, NULL, &error)) { + err_msg = "lock exists, but reading it failed"; + goto flock_lock_finish; + } + + /* XXX debugging */ + /* g_printerr ("lock already held by '%s'\n", lockdata); */ + + } else { + err_msg = "lock open failed"; + } + + flock_lock_finish: + if (err_msg != NULL) { + /* XXX debugging */ + /* g_printerr ("locking failed for '%s'\n", lockname); */ + + g_assert (lockdata == NULL); + lockdata = g_strdup_printf ("unknown (%s)", err_msg); + } + + if (lockname != NULL) { + g_free(lockname); + } + return lockdata; +} + +char * +flock_verify (const char* uri) +{ + char *lockname = NULL; + char *expected_lockdata = NULL; + char *actual_lockdata = NULL; + const char *err_msg = NULL; + GError *error = NULL; + + lockname = gen_lockname (uri); + if (lockname == NULL) { + err_msg = "illegal lockname"; + goto flock_verify_finish; + } + + expected_lockdata = gen_lockdata (); + if (expected_lockdata == NULL) { + err_msg = "lock data generation error"; + goto flock_verify_finish; + } + + /* XXX debugging */ + /* g_printerr ("verifying '%s'\n", lockname); */ + + g_file_get_contents (lockname, &actual_lockdata, NULL, &error); + g_assert ((actual_lockdata == NULL && error != NULL) || + (actual_lockdata != NULL && error == NULL)); + if (error != NULL) { + /* XXX debugging */ + /* g_printerr ("ERROR: reading lock file -- %s\n", error->message); */ + g_error_free (error); + err_msg = "reading lock failed"; + goto flock_verify_finish; + } + + if (strncmp (expected_lockdata, actual_lockdata, max_lockdata_sz) == 0) { + g_free(actual_lockdata); + actual_lockdata = NULL; + } else { + /* XXX debugging */ + /* g_printerr ("expected '%s', actually '%s'\n", expected_lockdata, actual_lockdata); */ + } + + flock_verify_finish: + if (err_msg != NULL) { + /* XXX debugging */ + /* g_printerr ("lock verify failed for '%s'\n", lockname); */ + + g_assert (actual_lockdata == NULL); + actual_lockdata = g_strdup_printf ("unknown (%s)", err_msg); + } + + if (lockname != NULL) { + g_free(lockname); + } + if (expected_lockdata != NULL) { + g_free(expected_lockdata); + } + return actual_lockdata; +} + +gboolean +flock_release (const char* uri) +{ + char *lockname; + gboolean success; + + if (flock_verify (uri) != NULL) { + return FALSE; + } + + lockname = gen_lockname (uri); + + /* XXX debugging */ + /* g_printerr ("releasing '%s'\n", lockname); */ + + success = (g_remove (lockname) == 0); + g_free(lockname); + + return success; +} --- gnumeric-1.6.2/src/workbook-control-gui.c.dotlocking 2005-11-14 01:34:05.000000000 -0500 +++ gnumeric-1.6.2/src/workbook-control-gui.c 2006-03-08 15:56:05.000000000 -0500 @@ -1174,12 +1174,38 @@ wbcg_menu_state_update (WorkbookControl ? _("Remove a filter") : _("Add a filter"); wbcg_set_action_label (wbcg, "DataAutoFilter", NULL, label, new_tip); } } +void +wbcg_save_set_sensitivity (WorkbookControlGUI *wbcg, gboolean state) +{ + g_return_if_fail (wbcg != NULL); + wbcg_set_action_sensitivity (wbcg, "FileSave", state); +} + +void +wbcg_locked_file_dialog (WorkbookControl *wbc, const char *data, const char *msg) +{ + GtkWidget *d; + WorkbookControlGUI *wbcg = (WorkbookControlGUI *)wbc; + char *header; + + g_return_if_fail (wbcg != NULL); + + header = g_strdup_printf ("FILE LOCKED by %s", data); + d = gnumeric_message_dialog_new (wbcg_toplevel (wbcg), + GTK_DIALOG_DESTROY_WITH_PARENT, + GTK_MESSAGE_WARNING, + header, msg); + g_free (header); + go_gtk_dialog_add_button (GTK_DIALOG(d), "OK", GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL); + go_gtk_dialog_run (GTK_DIALOG (d), wbcg_toplevel (wbcg)); +} + static void wbcg_undo_redo_labels (WorkbookControl *wbc, char const *undo, char const *redo) { WorkbookControlGUI *wbcg = (WorkbookControlGUI *)wbc; g_return_if_fail (wbcg != NULL); --- gnumeric-1.6.2/src/Makefile.am.dotlocking 2006-01-30 00:24:47.000000000 -0500 +++ gnumeric-1.6.2/src/Makefile.am 2006-03-08 15:56:05.000000000 -0500 @@ -82,12 +82,14 @@ GNUMERIC_BASE = \ expr.h \ expr-impl.h \ expr-name.c \ expr-name.h \ file-autoft.c \ file-autoft.h \ + flock.c \ + flock.h \ format-template.c \ format-template.h \ func.c \ func.h \ func-builtin.c \ func-builtin.h \ --- gnumeric-1.6.2/src/main-application.c.dotlocking 2006-01-30 00:24:47.000000000 -0500 +++ gnumeric-1.6.2/src/main-application.c 2006-03-08 15:56:05.000000000 -0500 @@ -445,12 +445,16 @@ main (int argc, char const *argv []) opened_workbook = TRUE; icg_set_transient_for (IO_CONTEXT_GTK (ioc), wbcg_toplevel (wbcg)); if (immediate_exit_flag) wbcgs_to_kill = g_slist_prepend (wbcgs_to_kill, wbcg); + + if (workbook_externally_locked (wbv->wb)) { + wb_view_adapt_to_locking (wbv, NULL, WBV_EXT_LOCK_OPEN); + } } /* cheesy attempt to keep the ui from freezing during load */ handle_paint_events (); if (icg_get_interrupted (IO_CONTEXT_GTK (ioc))) break; /* Don't load any more workbooks */ --- gnumeric-1.6.2/src/workbook-view.h.dotlocking 2005-06-08 15:03:16.000000000 -0400 +++ gnumeric-1.6.2/src/workbook-view.h 2006-03-08 15:56:05.000000000 -0500 @@ -1,6 +1,8 @@ +/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ + #ifndef GNUMERIC_WORKBOOK_VIEW_H #define GNUMERIC_WORKBOOK_VIEW_H #include "gnumeric.h" #include #include @@ -44,12 +46,19 @@ typedef struct { #define WORKBOOK_VIEW_TYPE (workbook_view_get_type ()) #define WORKBOOK_VIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), WORKBOOK_VIEW_TYPE, WorkbookView)) #define WORKBOOK_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), WORKBOOK_VIEW_TYPE, WorkbookViewClass)) #define IS_WORKBOOK_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), WORKBOOK_VIEW_TYPE)) +typedef enum { + WBV_EXT_LOCK_OPEN, + WBV_EXT_LOCK_SAVE, + WBV_EXT_LOCK_SAVEAS, + WBV_SELF_LOCK_FAULT +} WbvLockNotification; + /* Lifecycle */ GType workbook_view_get_type (void); WorkbookView *workbook_view_new (Workbook *optional_workbook); void wb_view_attach_control (WorkbookView *wbv, WorkbookControl *wbc); void wb_view_detach_control (WorkbookControl *wbc); --- gnumeric-1.6.2/src/gui-file.c.dotlocking 2005-11-14 01:34:04.000000000 -0500 +++ gnumeric-1.6.2/src/gui-file.c 2006-03-08 15:56:05.000000000 -0500 @@ -142,12 +142,16 @@ gui_wb_view_show (WorkbookControlGUI *wb new_wbcg = WORKBOOK_CONTROL_GUI (new_wbc); wbcg_copy_toolbar_visibility (new_wbcg, wbcg); } #endif + if (workbook_externally_locked (wbv->wb)) { + wb_view_adapt_to_locking (wbv, NULL, WBV_EXT_LOCK_OPEN); + } + sheet_update (wb_view_cur_sheet (wbv)); } gboolean gui_file_read (WorkbookControlGUI *wbcg, char const *uri, GOFileOpener const *optional_format, gchar const *optional_encoding) --- gnumeric-1.6.2/src/workbook.h.dotlocking 2005-06-30 12:08:02.000000000 -0400 +++ gnumeric-1.6.2/src/workbook.h 2006-03-08 15:56:05.000000000 -0500 @@ -35,12 +35,14 @@ gboolean workbook_sheet_rename GSList *new_names, GOCmdContext *cc); unsigned workbook_find_command (Workbook *wb, gboolean is_undo, gpointer cmd); +gboolean workbook_externally_locked (Workbook *wb); +void workbook_set_externally_locked (Workbook *wb, gboolean state); /* IO Routines */ gboolean workbook_set_uri (Workbook *wb, char const *uri); char const *workbook_get_uri (Workbook const *wb); gboolean workbook_set_saveinfo (Workbook *wb, --hQiwHBbRI9kgIhsi-- From mwelinder@gmail.com Wed Mar 8 21:58:55 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 936653B1B1B for ; Wed, 8 Mar 2006 21:58:55 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 13551-01 for ; Wed, 8 Mar 2006 21:58:54 -0500 (EST) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.206]) by menubar.gnome.org (Postfix) with ESMTP id 2BEF73B1668 for ; Wed, 8 Mar 2006 21:58:54 -0500 (EST) Received: by wproxy.gmail.com with SMTP id i32so316325wra for ; Wed, 08 Mar 2006 18:58:53 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=jbxsm+LNaVshoE8YK8UzdOhOmZ9/39Jj6dlhSaqbOODWRZGQqq33TaZWBd99mxhbnCi/EmuG9HCsXfvUUjTPugWRmRrmgGz3jR4c+cbV/2DlssL5tanJ4Aykw0dlGzf4Nq7TtmEWf6AP7B50k0MVf6QLKJF+YLnLrjNIF5imXgA= Received: by 10.35.49.4 with SMTP id b4mr660669pyk; Wed, 08 Mar 2006 18:58:52 -0800 (PST) Received: by 10.35.39.13 with HTTP; Wed, 8 Mar 2006 18:58:52 -0800 (PST) Message-ID: <118833cc0603081858k546ea73vbd3bee1ed8305ffe@mail.gmail.com> Date: Wed, 8 Mar 2006 21:58:52 -0500 From: "Morten Welinder" To: geeks@telemetry-investments.com In-Reply-To: <20060308210915.GF6394@ti20.telemetry-investments.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060308210915.GF6394@ti20.telemetry-investments.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.299 tagged_above=-999 required=2 tests=[AWL=0.301, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.299 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: [patch for 1.6.2] dot-file locking X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 02:58:55 -0000 Very interesting. Some comments: 1. Bugzilla is a far better place. Please open a bug and attach the patch. 2. The guts of this ought to live in goffice, probably go-file.c 3. I don't think the mechanism to lock should be O_EXCL because it does not work with NFS. Symlinks would work there, but might be an issue on Win32. 4. Please use g_get_host_name if available. Alway use g_get_user_name. 5. You need to ensure that other people can read the lock files. 6. If $EVIL creates a 1GB fake lock file, will Gnumeric crash? 7. What about character set for the file? Since the encoding of the userna= me is not known, it appears that we can end up trying to display non-UTF8 tex= t. (Same issue if $EVIL puts random binary stuff into a lockfile.) 8. You are writing a zero byte at the end of the file. Worse, it looks lik= e you depend on it being there when you read the file. 9. Things need to be translated, i.e., use _() as appropriate. Morten From jody@thegoldbergs.ca Wed Mar 8 23:03:23 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id CFE243B1B75 for ; Wed, 8 Mar 2006 23:03:22 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15967-10 for ; Wed, 8 Mar 2006 23:03:16 -0500 (EST) Received: from smtp105.rog.mail.re2.yahoo.com (smtp105.rog.mail.re2.yahoo.com [206.190.36.83]) by menubar.gnome.org (Postfix) with SMTP id D6DBA3B1D77 for ; Wed, 8 Mar 2006 23:01:40 -0500 (EST) Received: (qmail 80691 invoked from network); 9 Mar 2006 04:01:40 -0000 Received: from unknown (HELO athlon.thegoldbergs.ca) (29105138807@rogers.com@72.59.8.128 with login) by smtp105.rog.mail.re2.yahoo.com with SMTP; 9 Mar 2006 04:01:40 -0000 Received: by athlon.thegoldbergs.ca (Postfix, from userid 501) id 47DD219009; Wed, 8 Mar 2006 23:01:39 -0500 (EST) Date: Wed, 8 Mar 2006 23:01:39 -0500 From: Jody Goldberg To: Davide Montanari Message-ID: <20060309040139.GA7429@thegoldbergs.ca> Mail-Followup-To: Davide Montanari , gnumeric-list@gnome.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.523 tagged_above=-999 required=2 tests=[AWL=0.076, BAYES_00=-2.599] X-Spam-Score: -2.523 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: cell implementation X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 04:03:23 -0000 On Sat, Feb 18, 2006 at 01:43:38PM +0100, Davide Montanari wrote: > I have a question... I don't understand how can i set colour of numbers > in cells for exemple if they are higher or lower than a fixed value, > such as color red for number lower than six or colour green for number > higher than 6 etc. Is it possible? It's possible via number formats. Something like [>100][Red]0.00;0.00 Select an accounting format (in the cell format dialog) then jump to the custom tab to see to format string. From mlaks@verizon.net Thu Mar 9 10:40:17 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BC6713B1F96 for ; Thu, 9 Mar 2006 10:40:16 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20822-04 for ; Thu, 9 Mar 2006 10:40:16 -0500 (EST) Received: from vms040pub.verizon.net (vms040pub.verizon.net [206.46.252.40]) by menubar.gnome.org (Postfix) with ESMTP id A4E9C3B205C for ; Thu, 9 Mar 2006 10:40:15 -0500 (EST) Received: from rambam ([68.237.217.164]) by vms040.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IVV0079PA72GUO3@vms040.mailsrvcs.net> for gnumeric-list@gnome.org; Thu, 09 Mar 2006 09:40:15 -0600 (CST) Date: Thu, 09 Mar 2006 10:41:24 -0500 From: Mitchell Laks To: gnumeric-list@gnome.org Message-id: <200603091041.25013.mlaks@verizon.net> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7bit Content-disposition: inline User-Agent: KMail/1.9.1 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-0.692 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, SPF_PASS=-0.001] X-Spam-Score: -0.692 X-Spam-Level: Subject: debian sid gnumeric 1.6.1 doesnt have "database" tab in tools or data X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 15:40:17 -0000 Hi, I have a friend who uses excel and I am trying to show him how to use gnumeric instead. He needs to have database access to display results of queries in the spreadsheet. This seems like a reasonable request. I see that we can use postgresql with the gnome database gdba. At work i have a sarge install which is gnumeric 1.4.3 i think. It has a database menu item that invokes the gnome database application. How come I don't see it in the 1.6.1 version in debian sid? Should I file a bug in debian or is it an "upstream issue". I am still hacking around getting things working. I see something about needing to have selected a set of cells = size of result of the query before running the query. Is this still an issue? Thanks for your wonderful work! Mitchell From fsmla@xinara.org Thu Mar 9 11:35:56 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8E0013B21C9 for ; Thu, 9 Mar 2006 11:35:56 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24735-09 for ; Thu, 9 Mar 2006 11:35:49 -0500 (EST) Received: from zensunni.xinara.org (node-072-048.dsl.active24.nl [217.22.72.48]) by menubar.gnome.org (Postfix) with ESMTP id 61C3D3B2154 for ; Thu, 9 Mar 2006 11:35:48 -0500 (EST) Received: from ray by zensunni.xinara.org with local (Exim 4.60) (envelope-from ) id 1FHO79-0005rH-Al for gnumeric-list@gnome.org; Thu, 09 Mar 2006 17:35:47 +0100 Date: Thu, 9 Mar 2006 17:35:42 +0100 From: "J.H.M. Dassen (Ray)" To: gnumeric-list@gnome.org Message-ID: <20060309163542.GA22398@xinara.org> Mail-Followup-To: gnumeric-list@gnome.org References: <200603091041.25013.mlaks@verizon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200603091041.25013.mlaks@verizon.net> Organization: Ray at home X-System: Debian GNU/Linux testing/unstable, kernel 2.6.15.6 User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.38 tagged_above=-999 required=2 tests=[AWL=0.008, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, SPF_PASS=-0.001, TW_BG=0.077] X-Spam-Score: -2.38 X-Spam-Level: Subject: Re: debian sid gnumeric 1.6.1 doesnt have "database" tab in tools or data X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 16:35:56 -0000 On Thu, Mar 09, 2006 at 10:41:24 -0500, Mitchell Laks wrote: > At work i have a sarge install which is gnumeric 1.4.3 i think. It has a > database menu item that invokes the gnome database application. How come > I don't see it in the 1.6.1 version in debian sid? There is no gnumeric 1.6.1 in sid anymore; sid has 1.6.2(-3) currently. Gnumeric in sid is not built with GDA support, because the version of libgda needed by gnumeric 1.6.x's GDA bindings is not available in sid. As of 1.6.2-2, the descriptions of the packages have been updated to reflect this. > Should I file a bug in debian or is it an "upstream issue". It's not an upstream issue, nor is it a bug in sid's gnumeric packages. You could file a bug against the GDA packages in Debian. Once suitable GDA packages are available in sid, it will be possible to reenable GDA support in the gnumeric builds for sid. HTH, -- TV is the worst of both worlds. It's not as good at words as radio is because the pictures are a distraction which demand attention, and it's not as good as cinema because the pictures are not nearly as good. Douglas Adams in http://slashdot.org/article.pl?sid=00/06/21/1217242 From tspalink@telemetry-investments.com Thu Mar 9 14:10:54 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 8CD533B0C0E for ; Thu, 9 Mar 2006 14:10:53 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02100-05 for ; Thu, 9 Mar 2006 14:10:52 -0500 (EST) Received: from mail1.telemetry-investments.com (209-166-240-202.cust.walrus.com [209.166.240.202]) by menubar.gnome.org (Postfix) with ESMTP id A67873B23CA for ; Thu, 9 Mar 2006 14:10:51 -0500 (EST) Received: from ti20.telemetry-investments.com (ti20 [192.168.8.20]) by ti41.telemetry-investments.com (Postfix) with ESMTP id 5B0C21010F for ; Thu, 9 Mar 2006 14:10:46 -0500 (EST) Received: by ti20.telemetry-investments.com (Postfix, from userid 369) id 2DF892807F; Thu, 9 Mar 2006 14:10:46 -0500 (EST) Date: Thu, 9 Mar 2006 14:10:46 -0500 From: Tammo Spalink To: gnumeric-list@gnome.org Message-ID: <20060309191046.GB11795@ti20.telemetry-investments.com> Mail-Followup-To: gnumeric-list@gnome.org References: <20060308210915.GF6394@ti20.telemetry-investments.com> <118833cc0603081858k546ea73vbd3bee1ed8305ffe@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="EeQfGwPcQSOJBaQU" Content-Disposition: inline In-Reply-To: <118833cc0603081858k546ea73vbd3bee1ed8305ffe@mail.gmail.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.078 tagged_above=-999 required=2 tests=[AWL=0.156, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135, TW_PW=0.077, TW_TP=0.077, TW_WU=0.077] X-Spam-Score: -2.078 X-Spam-Level: Subject: Re: [patch for 1.6.2] dot-file locking X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 19:10:54 -0000 --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Thanks a bunch for the comments. Tammo Some inline responses: On Wed, Mar 08, 2006 at 09:58:52PM -0500, Morten Welinder wrote: > Very interesting. Some comments: > > 1. Bugzilla is a far better place. Please open a bug and > attach the patch. Done, I submitted a patch that also includes the changes described in this mail. > 2. The guts of this ought to live in goffice, probably go-file.c Not sure I see this argument. The "guts" primarily are specialized to the semantics of gnumeric, doing things like adjusting gui properties. I agree that probably some of the file operations could move there, but it seems cleaner to keep it together. > 3. I don't think the mechanism to lock should be O_EXCL > because it does not work with NFS. Symlinks would > work there, but might be an issue on Win32. O_EXCL is said to (and actually appears to) work fine on modern kernels (>= 2.6.5). > 4. Please use g_get_host_name if available. Alway use g_get_user_name. Done, see attached incremental patch. > 5. You need to ensure that other people can read the lock > files. Ah, I suppose you mean setting the umask... Done. > 6. If $EVIL creates a 1GB fake lock file, will Gnumeric crash? Not planning to test this one ;) I was using g_get_file_contents, which I would hope does not simply crash when files are too big... The attached new patch explicitly reads only a bounded amount. > 7. What about character set for the file? Since the encoding of the username is > not known, it appears that we can end up trying to display non-UTF8 text. > (Same issue if $EVIL puts random binary stuff into a lockfile.) New patch should address this. > 8. You are writing a zero byte at the end of the file. Worse, it looks like you > depend on it being there when you read the file. Should be fixed now. > 9. Things need to be translated, i.e., use _() as appropriate. Done. > Morten --EeQfGwPcQSOJBaQU Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="gnumeric.dotlocking-v1.0.patch" --- gnumeric-1.6.2/src/workbook-view.h.dotlocking.1 2006-03-09 11:56:04.000000000 -0500 +++ gnumeric-1.6.2/src/workbook-view.h 2006-03-09 11:56:19.000000000 -0500 @@ -49,12 +49,16 @@ typedef struct { #define WORKBOOK_VIEW_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), WORKBOOK_VIEW_TYPE, WorkbookViewClass)) #define IS_WORKBOOK_VIEW(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), WORKBOOK_VIEW_TYPE)) +/* File Locking */ typedef enum { WBV_EXT_LOCK_OPEN, WBV_EXT_LOCK_SAVE, WBV_EXT_LOCK_SAVEAS, WBV_SELF_LOCK_FAULT } WbvLockNotification; +void wb_view_adapt_to_locking (WorkbookView *wbv, + const char *lockdata, + WbvLockNotification ln); /* Lifecycle */ GType workbook_view_get_type (void); --- gnumeric-1.6.2/src/flock.c.dotlocking.1 2006-03-09 09:05:56.000000000 -0500 +++ gnumeric-1.6.2/src/flock.c 2006-03-09 11:57:33.000000000 -0500 @@ -13,6 +13,7 @@ #include #include #include +#include #include "gnumeric.h" #include "flock.h" @@ -21,17 +22,16 @@ #define O_NOFOLLOW (0) #endif -const unsigned max_lockdata_sz = 128; +const unsigned max_lockdata_sz = 1024; -char * gen_lockname (const char *); -char * gen_lockdata (void); +static char * gen_lockname (const char *); +static char * gen_lockdata (void); +static char * read_lockdata (char *); -char * +static char * gen_lockname (const char *uri) { char *dir, *base, *lockname; - const char *s0 = "/."; - const char *s1 = ".lock"; if ((uri == NULL) || (strlen(uri) == 0) || (strncmp (uri, "file://", 7) != 0)) { return NULL; @@ -39,8 +39,7 @@ gen_lockname (const char *uri) dir = go_dirname_from_uri (uri, TRUE); base = go_basename_from_uri (uri); - lockname = (char *) g_malloc (strlen (dir) + strlen (base) + strlen (s0) + strlen (s1) + 1); - sprintf (lockname, "%s%s%s%s", dir, s0, base, s1); + lockname = g_strdup_printf ("%s/.%s.lock", dir, base); g_free (base); g_free (dir); @@ -50,37 +49,70 @@ gen_lockname (const char *uri) return lockname; } -char * +#if (! ((GLIB_MAJOR_VERSION > 2) || ((GLIB_MAJOR_VERSION == 2) && (GLIB_MINOR_VERSION >= 8)))) +static const char * +g_get_host_name (void) +{ + static char hostname [HOST_NAME_MAX + 1]; + + if (gethostname (hostname, HOST_NAME_MAX) == -1) { + return _("localhost"); + } + return hostname; +} +#endif + +static char * gen_lockdata () { - char hostname [HOST_NAME_MAX + 1]; - struct passwd *pw; + const gchar *username; + const gchar *hostname; uid_t uid; pid_t pid; - char *uid_str, *pid_str; char *data; - const char *s0 = "@"; - const char *s1 = " (uid "; - const char *s2 = ", pid "; - const char *s3 = ")"; - if (gethostname (hostname, HOST_NAME_MAX) == -1) { - return NULL; - } + username = g_get_user_name(); + hostname = g_get_host_name(); uid = getuid (); pid = getpid (); - if ((pw = getpwuid (uid)) == NULL) { + data = g_strdup_printf ("%s@%s (uid %lu, pid %lu)", username, hostname, + (long unsigned) uid, (long unsigned) pid); + + if (strlen (data) >= max_lockdata_sz) { + g_printerr (_("WARNING: lock data size exceeds allowance (%lu >= %lu)\n"), + strlen (data), max_lockdata_sz); + } + + return data; +} + +static char * +read_lockdata (char *lockname) +{ + int fd, r_rc, c_rc; + char *data; + + fd = g_open (lockname, O_RDONLY); + if (fd == -1) { + return NULL; + } + + data = (char *) g_malloc0 (max_lockdata_sz); + + r_rc = read (fd, data, max_lockdata_sz - 1); + c_rc = close (fd); + + /* XXX debugging */ + /* g_printerr ("lockdata is '%s'\n", data); */ + + if ((r_rc == -1) || (c_rc == -1) || + (! g_utf8_validate(data, -1, NULL))) { + g_free (data); return NULL; } - uid_str = g_strdup_printf ("%lu", (long unsigned) uid); - pid_str = g_strdup_printf ("%lu", (long unsigned) pid); - data = (char *) g_malloc (MIN(strlen (pw->pw_name) + strlen (hostname) + strlen (uid_str) + - strlen (pid_str) + strlen (s0) + strlen (s1) + strlen (s2) + - strlen (s3) + 1, max_lockdata_sz)); - snprintf (data, max_lockdata_sz - 1, "%s%s%s%s%s%s%s%s", - pw->pw_name, s0, hostname, s1, uid_str, s2, pid_str, s3); - g_free(uid_str); - g_free(pid_str); + + /* XXX debugging */ + /* g_printerr ("lockdata is utf8-kosher\n", data); */ return data; } @@ -91,45 +123,46 @@ flock_acquire (const char* uri) char *lockname = NULL; char *lockdata = NULL; const char *err_msg = NULL; + mode_t mask; int fd; lockname = gen_lockname (uri); if (lockname == NULL) { - err_msg = "illegal lockname"; + err_msg = _("illegal lockname"); goto flock_lock_finish; } /* XXX debugging */ /* g_printerr ("locking '%s'\n", lockname); */ + mask = umask(0); fd = g_open (lockname, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + umask(mask); if (fd != -1) { int w_rc, c_rc; lockdata = gen_lockdata (); if (lockdata == NULL) { - err_msg = "lock data generation error"; + err_msg = _("lock data generation error"); goto flock_lock_finish; } - w_rc = write (fd, lockdata, strlen (lockdata) + 1); + w_rc = write (fd, lockdata, MIN(strlen (lockdata), max_lockdata_sz)); g_free(lockdata); lockdata = NULL; c_rc = close (fd); if (w_rc == -1) { - err_msg = "lock write failure"; + err_msg = _("lock write failure"); goto flock_lock_finish; } if (c_rc == -1) { - err_msg = "lock close failure"; + err_msg = _("lock close failure"); goto flock_lock_finish; } } else if (g_file_error_from_errno(errno) == G_FILE_ERROR_EXIST) { - GError *error = NULL; - - if (! g_file_get_contents (lockname, &lockdata, NULL, &error)) { - err_msg = "lock exists, but reading it failed"; + if ((lockdata = read_lockdata (lockname)) == NULL) { + err_msg = _("lock exists, but reading it failed"); goto flock_lock_finish; } @@ -137,7 +170,7 @@ flock_acquire (const char* uri) /* g_printerr ("lock already held by '%s'\n", lockdata); */ } else { - err_msg = "lock open failed"; + err_msg = _("lock open failed"); } flock_lock_finish: @@ -146,7 +179,7 @@ flock_acquire (const char* uri) /* g_printerr ("locking failed for '%s'\n", lockname); */ g_assert (lockdata == NULL); - lockdata = g_strdup_printf ("unknown (%s)", err_msg); + lockdata = g_strdup_printf ("%s (%s)", _("unknown"), err_msg); } if (lockname != NULL) { @@ -162,31 +195,24 @@ flock_verify (const char* uri) char *expected_lockdata = NULL; char *actual_lockdata = NULL; const char *err_msg = NULL; - GError *error = NULL; lockname = gen_lockname (uri); if (lockname == NULL) { - err_msg = "illegal lockname"; + err_msg = _("illegal lockname"); goto flock_verify_finish; } expected_lockdata = gen_lockdata (); if (expected_lockdata == NULL) { - err_msg = "lock data generation error"; + err_msg = _("lock data generation error"); goto flock_verify_finish; } /* XXX debugging */ /* g_printerr ("verifying '%s'\n", lockname); */ - g_file_get_contents (lockname, &actual_lockdata, NULL, &error); - g_assert ((actual_lockdata == NULL && error != NULL) || - (actual_lockdata != NULL && error == NULL)); - if (error != NULL) { - /* XXX debugging */ - /* g_printerr ("ERROR: reading lock file -- %s\n", error->message); */ - g_error_free (error); - err_msg = "reading lock failed"; + if ((actual_lockdata = read_lockdata (lockname)) == NULL) { + err_msg = _("reading lock failed"); goto flock_verify_finish; } @@ -204,7 +230,7 @@ flock_verify (const char* uri) /* g_printerr ("lock verify failed for '%s'\n", lockname); */ g_assert (actual_lockdata == NULL); - actual_lockdata = g_strdup_printf ("unknown (%s)", err_msg); + actual_lockdata = g_strdup_printf ("%s (%s)", _("unknown"), err_msg); } if (lockname != NULL) { --- gnumeric-1.6.2/src/workbook-view.c.dotlocking.1 2006-03-09 11:00:59.000000000 -0500 +++ gnumeric-1.6.2/src/workbook-view.c 2006-03-09 11:01:40.000000000 -0500 @@ -667,30 +667,30 @@ wb_view_adapt_to_locking (WorkbookView * switch (ln) { case WBV_EXT_LOCK_OPEN: - raw_msg = "The workbook '%s' is locked, which should mean that " - "someone else is currently using it. The workbook " - "will be opened, but saving changes will be disabled " - "to prevent the possibility of conflicting changes by " - "concurrent users. Use the SAVE AS menu action to " - "store any changes under a new name. Otherwise try " - "re-opening the workbook later."; + raw_msg = _("The workbook '%s' is locked, which should mean that " + "someone else is currently using it. The workbook " + "will be opened, but saving changes will be disabled " + "to prevent the possibility of conflicting changes by " + "concurrent users. Use the SAVE AS menu action to " + "store any changes under a new name. Otherwise try " + "re-opening the workbook later."); break; case WBV_EXT_LOCK_SAVE: - raw_msg = "Saving of workbook '%s' has been disabled. Use the " - "SAVE AS menu action to store any changes under a new name."; + raw_msg = _("Saving of workbook '%s' has been disabled. Use the " + "SAVE AS menu action to store any changes under a new name."); break; case WBV_EXT_LOCK_SAVEAS: - raw_msg = "The workbook '%s' is locked. This likely means that " - "someone else is currently using it. To prevent the possibility " - "of conflicting changes by concurrent users, saving to this " - "workbook has been disabled."; + raw_msg = _("The workbook '%s' is locked. This likely means that " + "someone else is currently using it. To prevent the possibility " + "of conflicting changes by concurrent users, saving to this " + "workbook has been disabled."); break; case WBV_SELF_LOCK_FAULT: - raw_msg = "The lock for workbook '%s' has been removed or damaged. " - "This is unexpected and is probably a sign that something " - "has gone wrong. To prevent the possibility of conflicting " - "changes by concurrent users, saving to this workbook has " - "been disabled."; + raw_msg = _("The lock for workbook '%s' has been removed or damaged. " + "This is unexpected and is probably a sign that something " + "has gone wrong. To prevent the possibility of conflicting " + "changes by concurrent users, saving to this workbook has " + "been disabled."); break; default: g_assert_not_reached(); --EeQfGwPcQSOJBaQU-- From klokan@gmail.com Thu Mar 9 16:29:02 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C0C493B25AF for ; Thu, 9 Mar 2006 16:29:02 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10483-06 for ; Thu, 9 Mar 2006 16:28:55 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.194]) by menubar.gnome.org (Postfix) with ESMTP id CB45C3B3BF7 for ; Thu, 9 Mar 2006 16:28:53 -0500 (EST) Received: by nproxy.gmail.com with SMTP id a27so5918nfc for ; Thu, 09 Mar 2006 13:28:52 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding:sender; b=VU+uweeEaXi7OWPZkV6C6ciEMqoBxxheYQI9sHA1BBgdbPmiFYgGf2OWw/9S1mhcd9p5zGliQJDco0Xacg5njZfXmCgj5Dcdt1OUDw5IJvhjqkqeos9QNPZe8DgQS+UzJnEJ8QOG/sbT7z+Gv7LzEBexEPjzh9UoT3eMjjguj2k= Received: by 10.49.17.2 with SMTP id u2mr13560nfi; Thu, 09 Mar 2006 13:28:52 -0800 (PST) Received: from ?10.0.0.50? ( [81.0.166.142]) by mx.gmail.com with ESMTP id y24sm1782063nfb.2006.03.09.13.28.51; Thu, 09 Mar 2006 13:28:52 -0800 (PST) Message-ID: <44109E44.9070809@klokan.cz> Date: Thu, 09 Mar 2006 22:29:40 +0100 From: =?UTF-8?B?S2xva2FuIFBldHIgUMWZaWRhbA==?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gnumeric-list@gnome.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Sender: Klokan Petr Pridal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: Export locking sheet to Excel X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Mar 2006 21:29:02 -0000 Hi, I'm really interested in repairing open Bug 330129 – Export locking sheet to Excel - http://bugzilla.gnome.org/show_bug.cgi?id=330129 (Maybe including validation which seems to be correctly exported only in Excel97+ export). Is anybody interested too? Is anybody working on it? Is that hard work for somebody who know the Gnumeric infrastructure? How many hours of work you expect? (I can sponsor such patch maybe if it will not ruine me :-)) I think all what is need to be repaired is described in the document: http://sc.openoffice.org/excelfileformat.pdf Unfortunatelly I'm not Gnome guru, and I have not studied all the GSF and Gnumeric sources... etc. ;-) I would like to repair it myself if there is no other way, but I'm sure it will take me much more time than it will to somebody with experiences. Anyway: Can you help me on IRC with that if I reach some obstacles (I promise I will not bother you every 5 minute :-))? Where and what I should start to read - I mean any developer documentation available? Or just source? Which file to start with? (I expect to work on it during weekend, maybe next week) Thanks a lot for any advices or answers Klokan Petr Pridal student FI MU Brno, Czech Republic From mwelinder@gmail.com Thu Mar 9 20:49:10 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2D3493B0B9C for ; Thu, 9 Mar 2006 20:49:10 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25104-10 for ; Thu, 9 Mar 2006 20:49:07 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.207]) by menubar.gnome.org (Postfix) with ESMTP id 810AB3B225B for ; Thu, 9 Mar 2006 20:49:07 -0500 (EST) Received: by zproxy.gmail.com with SMTP id 4so619225nzn for ; Thu, 09 Mar 2006 17:49:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qQO6bdqxplqClVbPcAMKQwPtV1mPa4Q430QRHvr3Xlff0zD5QQGdoWKtlCLlqd5Q+Pj3Z2QjQTy/H4gJ1tMLnUZEciRdGFe71WD2np44T/iPFlRf0g3dkYXaMJSjQhBrqejreHgAwAPHuRZCcf1iz0+RaBiTKY4wtRWzVcXXoPo= Received: by 10.36.250.47 with SMTP id x47mr301176nzh; Thu, 09 Mar 2006 17:49:06 -0800 (PST) Received: by 10.35.39.13 with HTTP; Thu, 9 Mar 2006 17:47:35 -0800 (PST) Message-ID: <118833cc0603091747oe14643ava33c986d8804c47@mail.gmail.com> Date: Thu, 9 Mar 2006 20:47:36 -0500 From: "Morten Welinder" To: "=?ISO-8859-2?Q?Klokan_Petr_P=F8idal?=" In-Reply-To: <44109E44.9070809@klokan.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44109E44.9070809@klokan.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.309 tagged_above=-999 required=2 tests=[AWL=0.291, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.309 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Export locking sheet to Excel X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2006 01:49:10 -0000 Given correct documentation -- and the document you pointed to is probably right -- this ought to be a fairly simple matter. Your first step would be to get Gnumeric compiling from scratch. After that, drop by #gnumeric on irc.gnome.org Morten From mwelinder@gmail.com Thu Mar 9 20:52:23 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 40EB33B2225 for ; Thu, 9 Mar 2006 20:52:23 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 25615-03 for ; Thu, 9 Mar 2006 20:52:22 -0500 (EST) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.176]) by menubar.gnome.org (Postfix) with ESMTP id 396923B2254 for ; Thu, 9 Mar 2006 20:52:22 -0500 (EST) Received: by pproxy.gmail.com with SMTP id z74so280804pyg for ; Thu, 09 Mar 2006 17:52:21 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=aX6NFQrpLzJWVzqn4yNSsGgYZdo1cRqOWGe72SugZaU+nYAADnFYLj+XM+ciQcvY8msjslnMW45GpE4cf8oMX2IDuMhiZwEI66piXydvkSHnqjQzVbt2SAuIXRCmhuC553fqOZQNDf5G6ZpYR88PLsOgNCPhT7nC22ohAhHx9E8= Received: by 10.35.105.18 with SMTP id h18mr1066pym; Thu, 09 Mar 2006 17:48:06 -0800 (PST) Received: by 10.35.39.13 with HTTP; Thu, 9 Mar 2006 17:47:35 -0800 (PST) Message-ID: <118833cc0603091747oe14643ava33c986d8804c47@mail.gmail.com> Date: Thu, 9 Mar 2006 20:47:36 -0500 From: "Morten Welinder" To: "=?ISO-8859-2?Q?Klokan_Petr_P=F8idal?=" In-Reply-To: <44109E44.9070809@klokan.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44109E44.9070809@klokan.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.319 tagged_above=-999 required=2 tests=[AWL=0.281, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.319 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Export locking sheet to Excel X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Mar 2006 01:52:23 -0000 Given correct documentation -- and the document you pointed to is probably right -- this ought to be a fairly simple matter. Your first step would be to get Gnumeric compiling from scratch. After that, drop by #gnumeric on irc.gnome.org Morten From klokan@gmail.com Sat Mar 11 17:42:16 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 327883B26BD for ; Sat, 11 Mar 2006 17:42:16 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31407-01 for ; Sat, 11 Mar 2006 17:42:14 -0500 (EST) Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.193]) by menubar.gnome.org (Postfix) with ESMTP id 3F7D93B269F for ; Sat, 11 Mar 2006 17:42:14 -0500 (EST) Received: by nproxy.gmail.com with SMTP id o60so518035nfa for ; Sat, 11 Mar 2006 14:42:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=Cdzt2+rFBOfy8VZoHE6d2TuqQVV0jP65dUHA1uxNY/f4SGVEki9KOW2tlnUdE5M3tj2KiIFWIlU5yXc7Arq8amjeBssK0lgPCx0fDXNcYygJzpvNROzrHOhCbmhexirJJ7Sa5nbcV0EgGp77WsRnAZP+KtHQH0QWa5/5EObK/b8= Received: by 10.49.28.8 with SMTP id f8mr2076053nfj; Sat, 11 Mar 2006 14:42:13 -0800 (PST) Received: from ?10.0.0.50? ( [81.0.166.142]) by mx.gmail.com with ESMTP id x1sm645037nfb.2006.03.11.14.42.09; Sat, 11 Mar 2006 14:42:12 -0800 (PST) Message-ID: <4413526F.40408@klokan.cz> Date: Sat, 11 Mar 2006 23:42:55 +0100 From: =?UTF-8?B?S2xva2FuIFBldHIgUMWZaWRhbA==?= User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: gnumeric-list@gnome.org References: <44109E44.9070809@klokan.cz> <118833cc0603091747oe14643ava33c986d8804c47@mail.gmail.com> In-Reply-To: <118833cc0603091747oe14643ava33c986d8804c47@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: Klokan Petr Pridal X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.6 tagged_above=-999 required=2 tests=[AWL=0.000, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.6 X-Spam-Level: Subject: Re: Export locking sheet to Excel X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Mar 2006 22:42:16 -0000 Hi, I tried to wrote patch for export/import of protected worksheets/workbook of Excel - attached to Bug 330129 http://bugzilla.gnome.org/show_bug.cgi?id=330129 And I discovered that protection of sheets is not implemented even in native file-format .gnumeric. So I did it too, I hope it's clean solution: attached to Bug 334257 http://bugzilla.gnome.org/show_bug.cgi?id=334257 Please check that patches carefully, I'm still beginner and there could be some new bugs inside. What is not implemented is storing of password. Any idea? (It's not strong security password, just for protect a bit more accidental modification. Different stronger implementation should be used in the future for open-only-if-you-know-password files). Excel has hash function which is described in 5.18.4 in http://sc.openoffice.org/excelfileformat.pdf Klokan From mwelinder@gmail.com Sat Mar 11 22:18:17 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id ED5503B0FAD for ; Sat, 11 Mar 2006 22:18:16 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09972-04 for ; Sat, 11 Mar 2006 22:18:16 -0500 (EST) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.201]) by menubar.gnome.org (Postfix) with ESMTP id DE7773B0EF2 for ; Sat, 11 Mar 2006 22:18:15 -0500 (EST) Received: by zproxy.gmail.com with SMTP id j2so1012428nzf for ; Sat, 11 Mar 2006 19:18:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=b6gfhgxx73jlzCqHhXxjtEFdSKaee7uh0XdKko3VJwYh4LkpHYfoGGMKF2wqrdDCM68q1in+fOoHYedTLneie8I7UpT6yKDTUMJzM9StQ6NKhXoh8Q6JGen7Wn8n5DbJK3R2WfKdw6Gvb3Klx71pUwwLp3sT7758V6bRJ52d9h8= Received: by 10.35.127.7 with SMTP id e7mr156395pyn; Sat, 11 Mar 2006 19:18:15 -0800 (PST) Received: by 10.35.39.13 with HTTP; Sat, 11 Mar 2006 19:18:15 -0800 (PST) Message-ID: <118833cc0603111918o49c990e4r6c05293165fd2a31@mail.gmail.com> Date: Sat, 11 Mar 2006 22:18:15 -0500 From: "Morten Welinder" To: "=?ISO-8859-2?Q?Klokan_Petr_P=F8idal?=" In-Reply-To: <4413526F.40408@klokan.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <44109E44.9070809@klokan.cz> <118833cc0603091747oe14643ava33c986d8804c47@mail.gmail.com> <4413526F.40408@klokan.cz> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.324 tagged_above=-999 required=2 tests=[AWL=0.276, BAYES_00=-2.599, SPF_PASS=-0.001] X-Spam-Score: -2.324 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Export locking sheet to Excel X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Mar 2006 03:18:17 -0000 Thanks. And as you noted, I single-handed managed to break cvs HEAD's save of expressions (and probably values also) to .gnumeric, :-/ Now fixed. Morten From david@stanaway.net Sat Mar 11 23:52:21 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 220063B15F3 for ; Sat, 11 Mar 2006 23:52:21 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14034-03 for ; Sat, 11 Mar 2006 23:52:19 -0500 (EST) Received: from ms-smtp-01-eri0.texas.rr.com (ms-smtp-01.texas.rr.com [24.93.47.40]) by menubar.gnome.org (Postfix) with ESMTP id 74D9C3B15F7 for ; Sat, 11 Mar 2006 23:52:19 -0500 (EST) Received: from [10.0.50.119] (cpe-66-68-201-176.rgv.res.rr.com [66.68.201.176]) by ms-smtp-01-eri0.texas.rr.com (8.13.4/8.13.4) with ESMTP id k2C4qEuR006220; Sat, 11 Mar 2006 22:52:17 -0600 (CST) From: David Stanaway To: Klokan Petr =?iso-8859-2?Q?P=F8idal?= In-Reply-To: <4413526F.40408@klokan.cz> References: <44109E44.9070809@klokan.cz> <118833cc0603091747oe14643ava33c986d8804c47@mail.gmail.com> <4413526F.40408@klokan.cz> Content-Type: text/plain; charset=iso-8859-2 Date: Sat, 11 Mar 2006 22:52:39 -0600 Message-Id: <1142139159.27490.6.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Export locking sheet to Excel X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Mar 2006 04:52:21 -0000 My issue with the style of password protection in the excel format is that it gives a false sense of security to the user that thinks he is protecting sensitive information. I have had people sending me html tables in email with the background of some sensitive columns set to black, thus appearing to black out the sensitive data. It would be nice to have the locked sheets implemented, but password protected files doesn't seem very useful in any meaningful way, unless it uses some strong encryption on the data using the passphrase as a key. Maybe adding through goffice support for ascii armored gpg encryted files. On Sat, 2006-03-11 at 23:42 +0100, Klokan Petr Pøidal wrote: > Hi, > > I tried to wrote patch for export/import of protected > worksheets/workbook of Excel - attached to Bug 330129 > http://bugzilla.gnome.org/show_bug.cgi?id=330129 > > And I discovered that protection of sheets is not implemented even in > native file-format .gnumeric. So I did it too, I hope it's clean > solution: attached to Bug 334257 > http://bugzilla.gnome.org/show_bug.cgi?id=334257 > > Please check that patches carefully, I'm still beginner and there could > be some new bugs inside. > > What is not implemented is storing of password. Any idea? > > (It's not strong security password, just for protect a bit more > accidental modification. Different stronger implementation should be > used in the future for open-only-if-you-know-password files). > > Excel has hash function which is described in 5.18.4 in > http://sc.openoffice.org/excelfileformat.pdf > > Klokan > _______________________________________________ > gnumeric-list mailing list > gnumeric-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gnumeric-list > From christopher.illies@ki.se Wed Mar 15 10:15:16 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 72DBF3B229A for ; Wed, 15 Mar 2006 10:15:16 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 03518-10 for ; Wed, 15 Mar 2006 10:15:15 -0500 (EST) Received: from humle.it.ki.se (humle.it.ki.se [130.237.101.252]) by menubar.gnome.org (Postfix) with ESMTP id F31003B1073 for ; Wed, 15 Mar 2006 10:15:14 -0500 (EST) Received: from Klabautermann.ks.se (pc053094.ks.se [136.155.136.187] (may be forged)) by humle.it.ki.se (8.13.1/8.13.1) with ESMTP id k2FFFETV015174 for ; Wed, 15 Mar 2006 16:15:14 +0100 (MET) Received: by Klabautermann.ks.se (Postfix, from userid 1001) id CA210C3A9; Wed, 15 Mar 2006 16:15:13 +0100 (CET) Date: Wed, 15 Mar 2006 16:15:13 +0100 From: Christopher Illies To: gnumeric-list@gnome.org Message-ID: <20060315151513.GB1810@Klabautermann.ks.se> Mail-Followup-To: Christopher Illies , gnumeric-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.464 tagged_above=-999 required=2 tests=[BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.464 X-Spam-Level: Subject: gnumeric under OS X X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Mar 2006 15:15:16 -0000 I would like to use gnumeric 1.6 on my iBook under OS X. Fink seems to only have 1.4.1, but I need the plotting features that 1.6.X provide. So one possibility that came to my mind is compiling gnumeric by hand. What scares me, though, is the large number of dependencies that I would need to compile as well. So I would like to have some advice before starting this adventure. Has anyone any experience with gnumeric under OS X? GTK+ now also seems to run under OS X without X11, so it seems possible to even run gnumeric without X11. Or am I wrong? Looking through the archive, this subject came up last around 2003, but not since then and lots of things have changed now. TIA, Christopher From tspalink@telemetry-investments.com Thu Mar 16 08:54:59 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 22F203B1102 for ; Thu, 16 Mar 2006 08:54:59 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10334-04 for ; Thu, 16 Mar 2006 08:54:57 -0500 (EST) Received: from mail1.telemetry-investments.com (209-166-240-202.cust.walrus.com [209.166.240.202]) by menubar.gnome.org (Postfix) with ESMTP id 2BB5F3B0D4D for ; Thu, 16 Mar 2006 08:54:56 -0500 (EST) Received: from ti20.telemetry-investments.com (ti20 [192.168.8.20]) by ti41.telemetry-investments.com (Postfix) with ESMTP id 1848310113 for ; Thu, 16 Mar 2006 08:54:56 -0500 (EST) Received: by ti20.telemetry-investments.com (Postfix, from userid 369) id 0FFC328157; Thu, 16 Mar 2006 08:54:56 -0500 (EST) Date: Thu, 16 Mar 2006 08:54:56 -0500 From: Tammo Spalink To: gnumeric-list@gnome.org Message-ID: <20060316135455.GM9079@ti20.telemetry-investments.com> Mail-Followup-To: gnumeric-list@gnome.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.266 tagged_above=-999 required=2 tests=[AWL=0.198, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.266 X-Spam-Level: Subject: Can't create new menu, pls help. (v1.6.2) X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 13:54:59 -0000 --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I have been trying to create a new menu (for a new feature). It would seem a straightforward modification of two files (the XML UI description and wbcg-actions), but my changes have no visible effect. The goal is a new "Triggers" menu between "Data" and "Help", with one "Edit Triggers" menuitem inside. I have attached a patch of the few lines of code that seemingly should throw up the new menu, but in fact do nothing. Any advice on what I am overlooking or not understanding would be greatly appreciated. Thanks, Tammo --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="triggers-v0.patch" --- src/GNOME_Gnumeric-gtk.xml.in.triggers-v0 2006-03-15 15:39:24.000000000 -0500 +++ src/GNOME_Gnumeric-gtk.xml.in 2006-03-16 08:13:34.000000000 -0500 @@ -207,12 +207,16 @@ --> + + + + --- src/wbcg-actions.c.triggers-v0 2006-03-15 15:42:33.000000000 -0500 +++ src/wbcg-actions.c 2006-03-16 08:28:45.000000000 -0500 @@ -818,12 +818,14 @@ static GNM_ACTION_DEF (cb_data_text_to_c static GNM_ACTION_DEF (cb_data_consolidate) { dialog_consolidate (wbcg); } #ifdef ENABLE_PIVOTS static GNM_ACTION_DEF (cb_data_pivottable) { dialog_pivottable (wbcg); } #endif +static GNM_ACTION_DEF (cb_edit_triggers) { g_printerr ("edit triggers callback!\n"); } + static void hide_show_detail_real (WorkbookControlGUI *wbcg, gboolean is_cols, gboolean show) { WorkbookControl *wbc = WORKBOOK_CONTROL (wbcg); SheetView *sv = wb_control_cur_sheet_view (wbc); char const *operation = show ? _("Show Detail") : _("Hide Detail"); @@ -1511,6 +1513,6 @@ static GtkActionEntry const permanent_ac { "MenuToolsScenarios", NULL, N_("Sce_narios") }, { "MenuToolStatisticalAnalysis", NULL, N_("Statistical Anal_ysis") }, { "MenuANOVA", NULL, N_("_ANOVA") }, { "MenuToolForecast", NULL, N_("F_orecast") }, { "MenuToolTTest", NULL, N_("Two _Means") }, { "MenuData", NULL, N_("_Data") }, { "MenuFilter", NULL, N_("_Filter") }, { "MenuOutline", NULL, N_("_Group and Outline") }, { "MenuExternalData", NULL, N_("Get _External Data") }, - { "MenuHelp", NULL, N_("_Help") }, + { "MenuTriggers", NULL, N_("Tri_ggers") }, + { "MenuHelp", NULL, N_("_Help") }, { "FileClose", GTK_STOCK_CLOSE, NULL, NULL, N_("Close the current file"), G_CALLBACK (cb_file_close) }, { "FileQuit", GTK_STOCK_QUIT, NULL, NULL, N_("Quit the application"), @@ -1557,12 +1560,16 @@ static GtkActionEntry const permanent_ac NULL, N_("Report problem "), G_CALLBACK (cb_help_bug) }, { "HelpAbout", GTK_STOCK_ABOUT, N_("_About"), NULL, N_("About this application"), G_CALLBACK (cb_help_about) }, + { "EditTriggers", NULL, N_("_Edit Triggers"), + NULL, N_("Edit sequential recalculation triggers"), + G_CALLBACK (cb_edit_triggers) }, + /* Special. The sensitivity is chained to redo we do not want to * toggle it directly so we put it in here */ { "Repeat", NULL, N_("Repeat"), "F4", N_("Repeat the previous action"), G_CALLBACK (cb_repeat) } }; --LQksG6bCIzRHxTLp-- From jean.brefort@normalesup.org Thu Mar 16 09:00:09 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id C28673B3CA8 for ; Thu, 16 Mar 2006 09:00:09 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10579-08 for ; Thu, 16 Mar 2006 09:00:05 -0500 (EST) Received: from smtp2-g19.free.fr (smtp2-g19.free.fr [212.27.42.28]) by menubar.gnome.org (Postfix) with ESMTP id 172BD3B3C8A for ; Thu, 16 Mar 2006 09:00:04 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp2-g19.free.fr (Postfix) with ESMTP id A2A20731AC; Thu, 16 Mar 2006 15:00:03 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: Tammo Spalink In-Reply-To: <20060316135455.GM9079@ti20.telemetry-investments.com> References: <20060316135455.GM9079@ti20.telemetry-investments.com> Content-Type: text/plain; charset=utf-8 Date: Thu, 16 Mar 2006 15:01:50 +0100 Message-Id: <1142517711.7411.0.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.895 tagged_above=-999 required=2 tests=[AWL=-0.365, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.895 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Can't create new menu, pls help. (v1.6.2) X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 14:00:14 -0000 Le jeudi 16 mars 2006 à 08:54 -0500, Tammo Spalink a écrit : > I have been trying to create a new menu (for a new feature). It would > seem a straightforward modification of two files (the XML UI > description and wbcg-actions), but my changes have no visible effect. > > The goal is a new "Triggers" menu between "Data" and "Help", with one > "Edit Triggers" menuitem inside. I have attached a patch of the few > lines of code that seemingly should throw up the new menu, but in fact > do nothing. > > Any advice on what I am overlooking or not understanding would be > greatly appreciated. Did you install the xml file before testing? From tspalink@telemetry-investments.com Thu Mar 16 10:13:42 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA4B63B3D30 for ; Thu, 16 Mar 2006 10:13:42 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15324-01 for ; Thu, 16 Mar 2006 10:13:37 -0500 (EST) Received: from mail1.telemetry-investments.com (209-166-240-202.cust.walrus.com [209.166.240.202]) by menubar.gnome.org (Postfix) with ESMTP id 967B03B3D2A for ; Thu, 16 Mar 2006 10:13:34 -0500 (EST) Received: from ti20.telemetry-investments.com (ti20 [192.168.8.20]) by ti41.telemetry-investments.com (Postfix) with ESMTP id DFBC810113; Thu, 16 Mar 2006 10:13:33 -0500 (EST) Received: by ti20.telemetry-investments.com (Postfix, from userid 369) id D093228157; Thu, 16 Mar 2006 10:13:33 -0500 (EST) Date: Thu, 16 Mar 2006 10:13:33 -0500 From: Tammo Spalink To: Jean =?iso-8859-1?Q?Br=E9fort?= Message-ID: <20060316151333.GF9085@ti20.telemetry-investments.com> Mail-Followup-To: Jean =?iso-8859-1?Q?Br=E9fort?= , gnumeric-list@gnome.org References: <20060316135455.GM9079@ti20.telemetry-investments.com> <1142517711.7411.0.camel@athlon.brefort.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1142517711.7411.0.camel@athlon.brefort.fr> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.335 tagged_above=-999 required=2 tests=[AWL=0.129, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.335 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Can't create new menu, pls help. (v1.6.2) X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 15:13:42 -0000 Ouch. This looks to be the problem. Thanks! Is there a simple way to configure a development sandbox for gnumeric? Maybe some environment variables that cause it to look in non-standard places for files? Tammo On Thu, Mar 16, 2006 at 03:01:50PM +0100, Jean Bréfort wrote: > Le jeudi 16 mars 2006 à 08:54 -0500, Tammo Spalink a écrit : > > I have been trying to create a new menu (for a new feature). It would > > seem a straightforward modification of two files (the XML UI > > description and wbcg-actions), but my changes have no visible effect. > > > > The goal is a new "Triggers" menu between "Data" and "Help", with one > > "Edit Triggers" menuitem inside. I have attached a patch of the few > > lines of code that seemingly should throw up the new menu, but in fact > > do nothing. > > > > Any advice on what I am overlooking or not understanding would be > > greatly appreciated. > > Did you install the xml file before testing? From jean.brefort@normalesup.org Thu Mar 16 10:23:47 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 44D793B1080 for ; Thu, 16 Mar 2006 10:23:47 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15866-03 for ; Thu, 16 Mar 2006 10:23:46 -0500 (EST) Received: from smtp4-g19.free.fr (smtp4-g19.free.fr [212.27.42.30]) by menubar.gnome.org (Postfix) with ESMTP id 76A673B0ED6 for ; Thu, 16 Mar 2006 10:23:46 -0500 (EST) Received: from che21-1-82-239-125-56.fbx.proxad.net (che21-1-82-239-125-56.fbx.proxad.net [82.239.125.56]) by smtp4-g19.free.fr (Postfix) with ESMTP id C8C3F547A3; Thu, 16 Mar 2006 16:23:44 +0100 (CET) From: Jean =?ISO-8859-1?Q?Br=E9fort?= To: Tammo Spalink In-Reply-To: <20060316151333.GF9085@ti20.telemetry-investments.com> References: <20060316135455.GM9079@ti20.telemetry-investments.com> <1142517711.7411.0.camel@athlon.brefort.fr> <20060316151333.GF9085@ti20.telemetry-investments.com> Content-Type: text/plain; charset=utf-8 Date: Thu, 16 Mar 2006 16:25:34 +0100 Message-Id: <1142522734.7411.3.camel@athlon.brefort.fr> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 Content-Transfer-Encoding: 8bit X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.899 tagged_above=-999 required=2 tests=[AWL=-0.369, BAYES_00=-2.599, SPF_NEUTRAL=1.069] X-Spam-Score: -1.899 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Can't create new menu, pls help. (v1.6.2) X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 15:23:47 -0000 Le jeudi 16 mars 2006 à 10:13 -0500, Tammo Spalink a écrit : > Ouch. This looks to be the problem. Thanks! > > Is there a simple way to configure a development sandbox for gnumeric? > Maybe some environment variables that cause it to look in non-standard > places for files? Personnaly, I replace installed files on which I work by links to the corresponding file in my devel tree. May be there is a better solution, but I'm not aware of. From jody@thegoldbergs.ca Thu Mar 16 12:06:06 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BBCBF3B3E10 for ; Thu, 16 Mar 2006 12:06:06 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22194-02 for ; Thu, 16 Mar 2006 12:06:05 -0500 (EST) Received: from smtp103.rog.mail.re2.yahoo.com (smtp103.rog.mail.re2.yahoo.com [206.190.36.81]) by menubar.gnome.org (Postfix) with SMTP id 41A083B3DF7 for ; Thu, 16 Mar 2006 12:06:05 -0500 (EST) Received: (qmail 32968 invoked from network); 16 Mar 2006 17:06:04 -0000 Received: from unknown (HELO athlon.thegoldbergs.ca) (29105138807@rogers.com@72.59.8.128 with login) by smtp103.rog.mail.re2.yahoo.com with SMTP; 16 Mar 2006 17:06:04 -0000 Received: by athlon.thegoldbergs.ca (Postfix, from userid 501) id A181F19040; Thu, 16 Mar 2006 12:06:02 -0500 (EST) Date: Thu, 16 Mar 2006 12:06:02 -0500 From: Jody Goldberg To: gnumeric-list@gnome.org Message-ID: <20060316170602.GA8886@thegoldbergs.ca> Mail-Followup-To: gnumeric-list@gnome.org References: <20060316135455.GM9079@ti20.telemetry-investments.com> <1142517711.7411.0.camel@athlon.brefort.fr> <20060316151333.GF9085@ti20.telemetry-investments.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060316151333.GF9085@ti20.telemetry-investments.com> User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.541 tagged_above=-999 required=2 tests=[AWL=0.058, BAYES_00=-2.599] X-Spam-Score: -2.541 X-Spam-Level: Subject: Re: Can't create new menu, pls help. (v1.6.2) X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Mar 2006 17:06:06 -0000 On Thu, Mar 16, 2006 at 10:13:33AM -0500, Tammo Spalink wrote: > Ouch. This looks to be the problem. Thanks! > > Is there a simple way to configure a development sandbox for gnumeric? > Maybe some environment variables that cause it to look in non-standard > places for files? Add a tag in configure.in m4_define([gnumeric_version_extra], [foo]) The gnumeric symlink will still get updated to the new executable, but all of the other files will go into a unique location. From md_rao@hotmail.com Thu Mar 16 23:07:38 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 849943B0F13 for ; Thu, 16 Mar 2006 23:07:38 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22504-09 for ; Thu, 16 Mar 2006 23:07:37 -0500 (EST) Received: from hotmail.com (bay12-f23.bay12.hotmail.com [64.4.35.23]) by menubar.gnome.org (Postfix) with ESMTP id 966913B0EF2 for ; Thu, 16 Mar 2006 23:07:37 -0500 (EST) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 16 Mar 2006 20:07:36 -0800 Message-ID: Received: from 66.77.76.101 by by12fd.bay12.hotmail.msn.com with HTTP; Fri, 17 Mar 2006 04:07:34 GMT X-Originating-IP: [59.92.193.175] X-Originating-Email: [md_rao@hotmail.com] X-Sender: md_rao@hotmail.com From: "Manohar D. Rao" To: gnumeric-list@gnome.org Date: Fri, 17 Mar 2006 04:07:34 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 17 Mar 2006 04:07:36.0504 (UTC) FILETIME=[530F1B80:01C64978] X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: Yes, score=2.906 tagged_above=-999 required=2 tests=[BAYES_60=1, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, MSGID_FROM_MTA_HEADER=0, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] X-Spam-Score: 2.906 X-Spam-Level: ** X-Spam-Flag: YES Subject: Gnumeric simulation functions X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2006 04:07:38 -0000 Does anybody know of a Gnumeric function to generate random numbers from a triangular distribution? Thanks in advance. Manohar Rao From mwelinder@gmail.com Fri Mar 17 11:35:40 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 38F6C3B24B8 for ; Fri, 17 Mar 2006 11:35:40 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28960-02 for ; Fri, 17 Mar 2006 11:35:39 -0500 (EST) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.180]) by menubar.gnome.org (Postfix) with ESMTP id 2C9C93B11A6 for ; Fri, 17 Mar 2006 11:35:39 -0500 (EST) Received: by pproxy.gmail.com with SMTP id x66so1847998pye for ; Fri, 17 Mar 2006 08:35:38 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=P5waU95hNLdcfLRht45aixlxdOnD+Efsn/l6OiySog4AHe0hwAGUOljaTe/4WwTZUzp2AGRqzNhB2BS0DFvcBN/1AChEGaLeiAQKAzy52Y0ujl6ueb5t9Dbo18bqbhEzRCic6XJHdk86EIwjWtVV9ZqGROm69xC82t1JijnTSzo= Received: by 10.35.99.14 with SMTP id b14mr122621pym; Fri, 17 Mar 2006 08:35:38 -0800 (PST) Received: by 10.35.39.13 with HTTP; Fri, 17 Mar 2006 08:35:38 -0800 (PST) Message-ID: <118833cc0603170835j3b9496cfoc7e2578522326b63@mail.gmail.com> Date: Fri, 17 Mar 2006 11:35:38 -0500 From: "Morten Welinder" To: "Manohar D. Rao" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.554 tagged_above=-999 required=2 tests=[AWL=-0.512, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.554 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: Gnumeric simulation functions X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Mar 2006 16:35:40 -0000 All you need is to take the inverse of the cdf on a uniform [0,1] random number. That's true for any continious distribution. For the triangular one, it looks like G(p) from http://www.brighton-webs.co.uk/distributions/triangular.asp will work. Math not checked. M. From tspalink@telemetry-investments.com Tue Mar 21 13:44:48 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2ABCF3B144C for ; Tue, 21 Mar 2006 13:44:48 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26010-02 for ; Tue, 21 Mar 2006 13:44:47 -0500 (EST) Received: from mail1.telemetry-investments.com (209-166-240-202.cust.walrus.com [209.166.240.202]) by menubar.gnome.org (Postfix) with ESMTP id 231E13B0EBB for ; Tue, 21 Mar 2006 13:44:46 -0500 (EST) Received: from ti20.telemetry-investments.com (ti20 [192.168.8.20]) by ti41.telemetry-investments.com (Postfix) with ESMTP id B8CA9100EC for ; Tue, 21 Mar 2006 13:44:45 -0500 (EST) Received: by ti20.telemetry-investments.com (Postfix, from userid 369) id AC38328176; Tue, 21 Mar 2006 13:44:45 -0500 (EST) Date: Tue, 21 Mar 2006 13:44:45 -0500 From: Tammo Spalink To: gnumeric-list@gnome.org Message-ID: <20060321184445.GG16936@ti20.telemetry-investments.com> Mail-Followup-To: gnumeric-list@gnome.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.161 tagged_above=-999 required=2 tests=[AWL=-1.111, BAYES_40=-0.185, FORGED_RCVD_HELO=0.135] X-Spam-Score: -1.161 X-Spam-Level: Subject: xml-sax read vs write? X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2006 18:44:48 -0000 I have introduced some additional workbook state with a new feature, that I plan to submit once it works. After some modifications to xml-sax-write, they show up spic and span in the .gnumeric workbook file. Corresponding modifications to xml-sax-read have no effect for me, however. Moreover, as far as I can tell (using gdb), the xml-sax-read functions are never called when my workbook file is read and parsed. Could someone please give me a hint regarding where I find the right input code to modify? Thanks, Tammo From tspalink@telemetry-investments.com Tue Mar 21 15:47:39 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 800443B1103 for ; Tue, 21 Mar 2006 15:47:39 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32320-05 for ; Tue, 21 Mar 2006 15:47:38 -0500 (EST) Received: from mail1.telemetry-investments.com (209-166-240-202.cust.walrus.com [209.166.240.202]) by menubar.gnome.org (Postfix) with ESMTP id E21163B0C03 for ; Tue, 21 Mar 2006 15:47:37 -0500 (EST) Received: from ti20.telemetry-investments.com (ti20 [192.168.8.20]) by ti41.telemetry-investments.com (Postfix) with ESMTP id C0455100EC for ; Tue, 21 Mar 2006 15:47:35 -0500 (EST) Received: by ti20.telemetry-investments.com (Postfix, from userid 369) id B3C0428176; Tue, 21 Mar 2006 15:47:35 -0500 (EST) Date: Tue, 21 Mar 2006 15:47:35 -0500 From: Tammo Spalink To: gnumeric-list@gnome.org Message-ID: <20060321204735.GA7244@ti20.telemetry-investments.com> Mail-Followup-To: gnumeric-list@gnome.org References: <20060321184445.GG16936@ti20.telemetry-investments.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060321184445.GG16936@ti20.telemetry-investments.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.357 tagged_above=-999 required=2 tests=[AWL=0.107, BAYES_00=-2.599, FORGED_RCVD_HELO=0.135] X-Spam-Score: -2.357 X-Spam-Level: Subject: Re: xml-sax read vs write? X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2006 20:47:39 -0000 To answer my own question, xml-io seems to contain the actual input processing code. Tammo On Tue, Mar 21, 2006 at 01:44:45PM -0500, Tammo Spalink wrote: > I have introduced some additional workbook state with a new feature, > that I plan to submit once it works. After some modifications to > xml-sax-write, they show up spic and span in the .gnumeric workbook > file. Corresponding modifications to xml-sax-read have no effect for > me, however. Moreover, as far as I can tell (using gdb), the > xml-sax-read functions are never called when my workbook file is read > and parsed. > > Could someone please give me a hint regarding where I find the right > input code to modify? > > Thanks, > > Tammo > _______________________________________________ > gnumeric-list mailing list > gnumeric-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gnumeric-list From jody@thegoldbergs.ca Tue Mar 21 22:33:56 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id B65BF3B26BB for ; Tue, 21 Mar 2006 22:33:56 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26722-04 for ; Tue, 21 Mar 2006 22:33:53 -0500 (EST) Received: from smtp107.rog.mail.re2.yahoo.com (smtp107.rog.mail.re2.yahoo.com [68.142.225.205]) by menubar.gnome.org (Postfix) with SMTP id 655543B2669 for ; Tue, 21 Mar 2006 22:33:53 -0500 (EST) Received: (qmail 72197 invoked from network); 22 Mar 2006 03:33:52 -0000 Received: from unknown (HELO athlon.thegoldbergs.ca) (29105138807@rogers.com@72.59.8.128 with login) by smtp107.rog.mail.re2.yahoo.com with SMTP; 22 Mar 2006 03:33:52 -0000 Received: by athlon.thegoldbergs.ca (Postfix, from userid 501) id 73F13118E; Tue, 21 Mar 2006 22:33:51 -0500 (EST) Date: Tue, 21 Mar 2006 22:33:51 -0500 From: Jody Goldberg To: gnumeric-list@gnome.org Message-ID: <20060322033351.GA20746@thegoldbergs.ca> Mail-Followup-To: gnumeric-list@gnome.org References: <20060321184445.GG16936@ti20.telemetry-investments.com> <20060321204735.GA7244@ti20.telemetry-investments.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060321204735.GA7244@ti20.telemetry-investments.com> User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.548 tagged_above=-999 required=2 tests=[AWL=0.051, BAYES_00=-2.599] X-Spam-Score: -2.548 X-Spam-Level: Subject: Re: xml-sax read vs write? X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2006 03:33:56 -0000 You only need to patch xml-sax. As of 1.7.0 it has become the only xml importer. For 1.6.x it is still labeled as experimental. On Tue, Mar 21, 2006 at 03:47:35PM -0500, Tammo Spalink wrote: > To answer my own question, xml-io seems to contain the actual input > processing code. > > Tammo > > On Tue, Mar 21, 2006 at 01:44:45PM -0500, Tammo Spalink wrote: > > I have introduced some additional workbook state with a new feature, > > that I plan to submit once it works. After some modifications to > > xml-sax-write, they show up spic and span in the .gnumeric workbook > > file. Corresponding modifications to xml-sax-read have no effect for > > me, however. Moreover, as far as I can tell (using gdb), the > > xml-sax-read functions are never called when my workbook file is read > > and parsed. > > > > Could someone please give me a hint regarding where I find the right > > input code to modify? From nashjc@uottawa.ca Mon Mar 27 21:10:59 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id BA72C3B0220 for ; Mon, 27 Mar 2006 21:10:59 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00984-08 for ; Mon, 27 Mar 2006 21:10:57 -0500 (EST) Received: from saruman.ncf.ca (saruman.ncf.ca [134.117.136.37]) by menubar.gnome.org (Postfix) with ESMTP id D61393B0232 for ; Mon, 27 Mar 2006 21:10:56 -0500 (EST) Received: from [192.168.1.91] (206-248-159-119.dsl.teksavvy.com [206.248.159.119]) by saruman.ncf.ca (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IWT00FCKFE1HK@saruman.ncf.ca> for gnumeric-list@gnome.org; Mon, 27 Mar 2006 21:10:51 -0500 (EST) Date: Mon, 27 Mar 2006 21:10:50 -0500 From: Prof J C Nash In-reply-to: <20060322170039.7715E3B33F8@menubar.gnome.org> To: gnumeric-list@gnome.org Message-id: <44289B2A.2000200@uottawa.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Debian Thunderbird 1.0.7 (X11/20051207) References: <20060322170039.7715E3B33F8@menubar.gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.435 tagged_above=-999 required=2 tests=[AWL=-0.358, BAYES_20=-0.74, RCVD_IN_SORBS_WEB=1.456, TW_HJ=0.077] X-Spam-Score: 0.435 X-Spam-Level: Subject: Re: sorting "bug" X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 02:10:59 -0000 Whether this is a bug or a feature or ?? is not clear. What is clear is that it is TROUBLE. My colleague Andy Adler sent me a msg pointing out that spreadsheets (OO, Gnumerice, Excel) all take the sheet A B 1 3 1 2 2 =B1 (<- set to 1) 3 1 3 and sort it on A to A B 1 1 3 2 2 =B1 (<- set to 3) 3 3 1 It is also interesting to sort on B. Longer examples show that the cell with the reference can be moved to where it makes no sense and gives a #REF error. For example: A B 1 6 2 7 3 6 = B1 4 9 and sort A in reverse order. Gives an error as =B1 points to =B0 (doesn't exist). The sorting is taking the data in the cells and ignoring the reference. The big danger is when we don't get any indication that we've made a reference, but the data is changed, as in marks for 600 students in my statistics for business courses. Nasty! What should we be doing? 1) formulas with references INSIDE the sort area should not be sorted. Indeed, one could say that sort should pre-check this and red-flag it. As far as I know (I'd be delighted if there is a way to do this), no spreadsheet does this yet. 2) formulas with references OUTSIDE the sort area should be OK. 3) references across a row for row sorts or down a column for column sorts should be OK, but we should warn the user that the references are there. (yellow flag) Burns in his Spreadsheet Addiction paper http://www.burns-stat.com/pages/Tutor/spreadsheet_addiction.html warns of this danger but in more general terms. Is this worth putting into the bugs system? Or is it a feature request? Or ??? J Nash -- John C. Nash, School of Management, University of Ottawa, Vanier Hall 451, 136 Jean-Jacques Lussier Private, P.O. Box 450, Stn A, Ottawa, Ontario, K1N 6N5 Canada email: nashjc on mail server uottawa.ca, voice mail: 613 562 5800 X 4796 fax 613 562 5164, Web URL = http://macnash.admin.uottawa.ca "Practical Forecasting for Managers" web site is at http://www.arnoldpublishers.com/support/nash/ From nashjc@uottawa.ca Tue Mar 28 11:39:25 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id E37EF3B294B for ; Tue, 28 Mar 2006 11:39:24 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18811-08 for ; Tue, 28 Mar 2006 11:39:24 -0500 (EST) Received: from saruman.ncf.ca (saruman.ncf.ca [134.117.136.37]) by menubar.gnome.org (Postfix) with ESMTP id 020FB3B2949 for ; Tue, 28 Mar 2006 11:39:23 -0500 (EST) Received: from [192.168.1.91] (206-248-159-119.dsl.teksavvy.com [206.248.159.119]) by saruman.ncf.ca (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0IWU00FINJLNIK@saruman.ncf.ca> for gnumeric-list@gnome.org; Tue, 28 Mar 2006 11:39:23 -0500 (EST) Date: Tue, 28 Mar 2006 11:39:22 -0500 From: Prof J C Nash In-reply-to: <20060322170039.7715E3B33F8@menubar.gnome.org> To: gnumeric-list@gnome.org Message-id: <442966BA.4070404@uottawa.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Debian Thunderbird 1.0.7 (X11/20051207) References: <20060322170039.7715E3B33F8@menubar.gnome.org> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=0.401 tagged_above=-999 required=2 tests=[AWL=-1.133, BAYES_50=0.001, RCVD_IN_SORBS_WEB=1.456, TW_HJ=0.077] X-Spam-Score: 0.401 X-Spam-Level: Subject: Re: sorting with forumulas or references X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 16:39:25 -0000 Finally managed to get bugzilla to send me a pw. and found discussion related to formulas in sort ranges as bug 59144. It appears to remain an open issue. JN -- John C. Nash, School of Management, University of Ottawa, Vanier Hall 451, 136 Jean-Jacques Lussier Private, P.O. Box 450, Stn A, Ottawa, Ontario, K1N 6N5 Canada email: nashjc on mail server uottawa.ca, voice mail: 613 562 5800 X 4796 fax 613 562 5164, Web URL = http://macnash.admin.uottawa.ca "Practical Forecasting for Managers" web site is at http://www.arnoldpublishers.com/support/nash/ From mwelinder@gmail.com Tue Mar 28 15:14:16 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id DF6063B1443 for ; Tue, 28 Mar 2006 15:14:15 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16260-09 for ; Tue, 28 Mar 2006 15:14:13 -0500 (EST) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.177]) by menubar.gnome.org (Postfix) with ESMTP id 384153B14C9 for ; Tue, 28 Mar 2006 15:14:13 -0500 (EST) Received: by pproxy.gmail.com with SMTP id i75so48578pye for ; Tue, 28 Mar 2006 12:14:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XIRDwpK8WwcLyjBJGg/XVN9LqLOuuRyd6UFcgPr+Wl0/QQX5+fiFsc0mBu7C19HkvGEoRY5FLSZDxUrNcUyWKrD9Y+c0+T0vPD3ZoH3ExmeAW57TJv4vOuK+wbJlnRwpRUqSoLDUIVIqH9LiyUqu5HWDTfvFpSN3+KB/6WMzvJc= Received: by 10.35.78.9 with SMTP id f9mr89220pyl; Tue, 28 Mar 2006 12:14:12 -0800 (PST) Received: by 10.35.39.13 with HTTP; Tue, 28 Mar 2006 12:14:12 -0800 (PST) Message-ID: <118833cc0603281214s338c7925m923e39ca2548abc@mail.gmail.com> Date: Tue, 28 Mar 2006 15:14:12 -0500 From: "Morten Welinder" To: "Prof J C Nash" In-Reply-To: <44289B2A.2000200@uottawa.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060322170039.7715E3B33F8@menubar.gnome.org> <44289B2A.2000200@uottawa.ca> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.541 tagged_above=-999 required=2 tests=[AWL=-0.499, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001] X-Spam-Score: -1.541 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: sorting "bug" X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Mar 2006 20:14:16 -0000 > 1) formulas with references INSIDE the sort area should not be sorted. > Indeed, one could say that sort should pre-check this and red-flag it. > As far as I know (I'd be delighted if there is a way to do this), no > spreadsheet does this yet. A little more detailed: 1a. Expressions that reference only cells within a given row are just fine. [Quite possibly beyond the set of columns being sorted.] 1b. Absolute references outside the area being sorted are fine too. 1c. Anything else is suspect. Morten From erich.neuwirth@univie.ac.at Wed Mar 29 03:00:55 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 2A80B3B2ADA for ; Wed, 29 Mar 2006 03:00:55 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18671-07 for ; Wed, 29 Mar 2006 03:00:53 -0500 (EST) Received: from imap1u.univie.ac.at (imap1u.univie.ac.at [131.130.1.182]) by menubar.gnome.org (Postfix) with ESMTP id 7F81B3B19B5 for ; Wed, 29 Mar 2006 03:00:52 -0500 (EST) Received: from [192.107.232.125] (m-135-167.adsl.univie.ac.at [131.130.135.167]) by imap1u.univie.ac.at (8.12.10/8.12.10) with ESMTP id k2T80IHb001343; Wed, 29 Mar 2006 10:00:19 +0200 (CEST) Message-ID: <442A3F03.8030609@univie.ac.at> Date: Wed, 29 Mar 2006 10:02:11 +0200 From: Erich Neuwirth User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Morten Welinder References: <20060322170039.7715E3B33F8@menubar.gnome.org> <44289B2A.2000200@uottawa.ca> <118833cc0603281214s338c7925m923e39ca2548abc@mail.gmail.com> In-Reply-To: <118833cc0603281214s338c7925m923e39ca2548abc@mail.gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-DCC-ZID-Univie-Metrics: mx9.univie.ac.at 4249; Body=0 Fuz1=0 Fuz2=0 X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.599 tagged_above=-999 required=2 tests=[BAYES_00=-2.599] X-Spam-Score: -2.599 X-Spam-Level: Cc: gnumeric-list@gnome.org, Prof J C Nash Subject: Re: sorting "bug" X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 08:00:55 -0000 Morten Welinder wrote: >> 1) formulas with references INSIDE the sort area should not be sorted. >> Indeed, one could say that sort should pre-check this and red-flag it. >> As far as I know (I'd be delighted if there is a way to do this), no >> spreadsheet does this yet. > > A little more detailed: > > 1a. Expressions that reference only cells within a given row are just fine. > [Quite possibly beyond the set of columns being sorted.] If we have a relative reference to the same row, but outside of the range being sorted, sorting might damage it. Only absolute references will work. Relative references are safe ONLY within the sorting range and within the same row. We really should read understand such operations as column operations instead of cell operations. > 1b. Absolute references outside the area being sorted are fine too. > 1c. Anything else is suspect. > > Morten > _______________________________________________ > gnumeric-list mailing list > gnumeric-list@gnome.org > http://mail.gnome.org/mailman/listinfo/gnumeric-list > > > -- Erich Neuwirth, University of Vienna Faculty of Computer Science Computer Supported Didactics Working Group Visit our SunSITE at http://sunsite.univie.ac.at Phone: +43-1-4277-39464 Fax: +43-1-4277-39459 From gnome-gnumeric-list@m.gmane.org Wed Mar 29 05:50:53 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 361803B1A50 for ; Wed, 29 Mar 2006 05:50:53 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28041-09 for ; Wed, 29 Mar 2006 05:50:47 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 3C20D3B1A6B for ; Wed, 29 Mar 2006 05:50:47 -0500 (EST) Received: from root by ciao.gmane.org with local (Exim 4.43) id 1FOYGC-0001kM-MR for gnumeric-list@gnome.org; Wed, 29 Mar 2006 12:50:44 +0200 Received: from home03207.cluj.astral.ro ([83.103.130.237]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Mar 2006 12:50:44 +0200 Received: from jani.monoses by home03207.cluj.astral.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Mar 2006 12:50:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gnumeric-list@gnome.org From: Jani Monoses Date: Wed, 29 Mar 2006 13:34:10 +0300 Lines: 15 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: home03207.cluj.astral.ro User-Agent: Mail/News 1.5 (X11/20060309) Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.506 tagged_above=-999 required=2 tests=[AWL=0.018, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.506 X-Spam-Level: Subject: libgoffice-gtk API X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 10:50:54 -0000 Hello all, how likely is that the gtk-only and the gnome builds of libgoffice will remain API/ABI compatible in the future? Right now from what I see the implementation differences are minor and transparent to the caller. The reason I am interested in this is because I'd like to take advantage of the --disable-gnome config options to package the gtk-only variants too in Debian/Ubuntu. While this can be done using separate source packages, having the two variants built from the same source package would be a lot more convenient. And the latter can be done cleanly if the two variants of goffice are interchangable at build and runtime. thank you Jani From mwelinder@gmail.com Wed Mar 29 09:59:20 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 909D23B1B92 for ; Wed, 29 Mar 2006 09:59:20 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12004-05 for ; Wed, 29 Mar 2006 09:59:20 -0500 (EST) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id 8F4293B1AF0 for ; Wed, 29 Mar 2006 09:59:17 -0500 (EST) Received: by pproxy.gmail.com with SMTP id 57so584532pya for ; Wed, 29 Mar 2006 06:59:15 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=UbEwWfMWudh0/a+bR9x7csBahPL/TQMZyLcz+ziNv7qDz3EWhC0Kpmz9QS8ebvIbj/c/zmJwx05ki7spCNb/7XfA4275sK1GS5EtNUhxYfCRR/bevkj/TFOd9BiUm/8mHNqT2bcVT2ypVyRd8BHKaDxc11iNs5El9Re3PWEU8Pc= Received: by 10.35.18.4 with SMTP id v4mr169262pyi; Wed, 29 Mar 2006 06:59:14 -0800 (PST) Received: by 10.35.39.13 with HTTP; Wed, 29 Mar 2006 06:59:14 -0800 (PST) Message-ID: <118833cc0603290659g7ebf32aen5e8ccc4abf92b554@mail.gmail.com> Date: Wed, 29 Mar 2006 09:59:14 -0500 From: "Morten Welinder" To: "Jani Monoses" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.488 tagged_above=-999 required=2 tests=[AWL=-0.523, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.488 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: libgoffice-gtk API X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 14:59:20 -0000 We aren't quite ready for API stability guarangees for goffice yet. Eventually -- just not now. M. From gnome-gnumeric-list@m.gmane.org Wed Mar 29 10:13:57 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 49D333B1BF7 for ; Wed, 29 Mar 2006 10:13:57 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12966-08 for ; Wed, 29 Mar 2006 10:13:55 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 089973B1AF1 for ; Wed, 29 Mar 2006 10:13:54 -0500 (EST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FOcMR-0002wO-6s for gnumeric-list@gnome.org; Wed, 29 Mar 2006 17:13:27 +0200 Received: from home03207.cluj.astral.ro ([83.103.130.237]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Mar 2006 17:13:27 +0200 Received: from jani.monoses by home03207.cluj.astral.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Mar 2006 17:13:27 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gnumeric-list@gnome.org From: Jani Monoses Date: Wed, 29 Mar 2006 18:12:36 +0300 Lines: 10 Message-ID: References: <118833cc0603290659g7ebf32aen5e8ccc4abf92b554@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: home03207.cluj.astral.ro User-Agent: Mail/News 1.5 (X11/20060309) In-Reply-To: <118833cc0603290659g7ebf32aen5e8ccc4abf92b554@mail.gmail.com> Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.508 tagged_above=-999 required=2 tests=[AWL=0.016, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.508 X-Spam-Level: Subject: Re: libgoffice-gtk API X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 15:13:57 -0000 Morten Welinder wrote: > We aren't quite ready for API stability guarangees for goffice yet. > Eventually -- just not now. So no guarantees for gtk-only and gnome versions of libgoffice to be API/ABI compatible with each other given same release. Just to make sure I undertand well, and not goffice API in general. thanks Jani From mwelinder@gmail.com Wed Mar 29 11:04:00 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 049BD3B1924 for ; Wed, 29 Mar 2006 11:04:00 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16298-01 for ; Wed, 29 Mar 2006 11:03:59 -0500 (EST) Received: from pproxy.gmail.com (pproxy.gmail.com [64.233.166.183]) by menubar.gnome.org (Postfix) with ESMTP id 7A8373B1B9B for ; Wed, 29 Mar 2006 11:03:58 -0500 (EST) Received: by pproxy.gmail.com with SMTP id 57so57576pya for ; Wed, 29 Mar 2006 08:03:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fuWWC/8oYj5SS9QaTOOigyR32LDdGCMIVSnCxd2/VsBRS+fAFuYCCDtAVCi56XMRw1R1V1pcHx+wSb8wsmiTHSSb/66qq0UV2F3njhcyKk3K5QkQ7YPqURGCCY6LrBhoxi9yYr3IfSrov6n6Np7bRk+ExKTf8EkPk7ooHVX5LiE= Received: by 10.35.70.17 with SMTP id x17mr858287pyk; Wed, 29 Mar 2006 08:03:56 -0800 (PST) Received: by 10.35.39.13 with HTTP; Wed, 29 Mar 2006 08:03:56 -0800 (PST) Message-ID: <118833cc0603290803s4a399ccdx7a441710e8d71444@mail.gmail.com> Date: Wed, 29 Mar 2006 11:03:56 -0500 From: "Morten Welinder" To: "Jani Monoses" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <118833cc0603290659g7ebf32aen5e8ccc4abf92b554@mail.gmail.com> X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-1.474 tagged_above=-999 required=2 tests=[AWL=-0.509, BAYES_00=-2.599, RCVD_IN_BL_SPAMCOP_NET=1.558, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -1.474 X-Spam-Level: Cc: gnumeric-list@gnome.org Subject: Re: libgoffice-gtk API X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 16:04:00 -0000 Oh. If -- within a single version -- the ABIs disagree, I think we have a bug. Do you know of any concrete problems? >From one version to the next, most bets are off. M. From gnome-gnumeric-list@m.gmane.org Wed Mar 29 11:13:15 2006 Return-Path: X-Original-To: gnumeric-list@gnome.org Delivered-To: gnumeric-list@gnome.org Received: from localhost (unknown [127.0.0.1]) by menubar.gnome.org (Postfix) with ESMTP id 37AB43B1C44 for ; Wed, 29 Mar 2006 11:13:15 -0500 (EST) Received: from menubar.gnome.org ([127.0.0.1]) by localhost (menubar.gnome.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16835-04 for ; Wed, 29 Mar 2006 11:13:10 -0500 (EST) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by menubar.gnome.org (Postfix) with ESMTP id 984F83B1C37 for ; Wed, 29 Mar 2006 11:13:10 -0500 (EST) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FOdHn-0007qV-Gv for gnumeric-list@gnome.org; Wed, 29 Mar 2006 18:12:43 +0200 Received: from home03207.cluj.astral.ro ([83.103.130.237]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Mar 2006 18:12:43 +0200 Received: from jani.monoses by home03207.cluj.astral.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 29 Mar 2006 18:12:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: gnumeric-list@gnome.org From: Jani Monoses Date: Wed, 29 Mar 2006 19:12:18 +0300 Lines: 19 Message-ID: References: <118833cc0603290659g7ebf32aen5e8ccc4abf92b554@mail.gmail.com> <118833cc0603290803s4a399ccdx7a441710e8d71444@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: home03207.cluj.astral.ro User-Agent: Mail/News 1.5 (X11/20060309) In-Reply-To: <118833cc0603290803s4a399ccdx7a441710e8d71444@mail.gmail.com> Sender: news X-Virus-Scanned: by amavisd-new at gnome.org X-Spam-Status: No, score=-2.511 tagged_above=-999 required=2 tests=[AWL=0.013, BAYES_00=-2.599, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TW_GT=0.077] X-Spam-Score: -2.511 X-Spam-Level: Subject: Re: libgoffice-gtk API X-BeenThere: gnumeric-list@gnome.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNOME spreadsheet List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Mar 2006 16:13:15 -0000 > Oh. > > If -- within a single version -- the ABIs disagree, I think we have a bug. > Do you know of any concrete problems? > No, no problem at all :) Just wanted to make sure there are no plans to provide different API/ABI when compiled with our without gnome. So the libs are a drop-in replacements for one another as far as apps linked to them are concerned. So is this guaranteed? >>From one version to the next, most bets are off. I am only interested in the same version case thanks Jani