Gcal data provider for GNOME-Shell

So I wanted to try out the new GNOME-Shell calendar app (the one attached to the clock at the top of the screen), but I definitely didn't want to use evolution. I use Google calendar for all of my calendaring.
Enter: google-calendar-server.
Just a quick and dirty python script (but it did take quite a bit of reading as I had no idea how to interact with Dbus at all before), it uses Google's provided gdata api to grab your calendar information, and then present it to the Dbus interface that the calendar app is looking at for information.
Dependencies:
- python2
- dbus (python-dbus)
- gdata (for getting calendar info)
- isodate (easy parsing of the dates given by Google, since they are for reasons unknown not just sending you dates in UTC or unix timestamp...)
Usage:
$ python2 cserver.py -uUSERNAME -pPASSWORD
It's ugly and dirty at this point, but it's certainly functional, so I figured I'd share it. You will probably want to turn off the Debug flag before running it unless you want to see all of my debug prints.
Download: https://bitbucket.org/skystrife/google-calendar-server

So I wanted to try out the new GNOME-Shell calendar app (the one attached to the clock at the top of the screen), but I definitely didn't want to use evolution. I use Google calendar for all of my calendaring.
Enter: google-calendar-server.
Just a quick and dirty python script (but it did take quite a bit of reading as I had no idea how to interact with Dbus at all before), it uses Google's provided gdata api to grab your calendar information, and then present it to the Dbus interface that the calendar app is looking at for information.
Dependencies:
- python2
- dbus (python-dbus)
- gdata (for getting calendar info)
- isodate (easy parsing of the dates given by Google, since they are for reasons unknown not just sending you dates in UTC or unix timestamp...)
Usage:
$ python2 cserver.py -uUSERNAME -pPASSWORD
It's ugly and dirty at this point, but it's certainly functional, so I figured I'd share it. You will probably want to turn off the Debug flag before running it unless you want to see all of my debug prints.
Download: https://bitbucket.org/skystrife/google-calendar-server

Similar Messages

  • How can I do for a row of a query be data provider for a variable?

    Hi friends, I have a problem !
    How can I do for a row of a query be data provider for a variable?
    I need that a value of variable be stored when the user select a row in a query. At the BPS we can do this configuring the variable selector in WIB, and in a WAB how I can do this ?
    Best regards,
    Gustavo Liberado

    In this case when I press the key to call other forms I need to wait for the response in the secondary form and then process the result.That is exactly what a "modal JDialog" (or JOptionPane) are used for.
    Try it. Create a short demo program. All you need is a JFrame with a single button to show the modal dialog. All you modal dialog needs is a single button to close the dialog. After you show the modal dialog add a System.out.println(...) statement in your code and you will see that it is not executed until the dialog is closed.
    Then once you understand the basics you add the code to your real program.
    If you need further help then you need to create a [Short, Self Contained, Compilable and Executable, Example Program (SSCCE)|http://homepage1.nifty.com/algafield/sscce.html], that demonstrates the incorrect behaviour.
    Don't forget to use the Code Formatting Tags so the posted code retains its original formatting. That is done by selecting the code and then clicking on the "Code" button above the question input area.

  • Using HTTPService as data provider for mx:ComboBox

    Hello all,
    I'm trying to use an HTTPService as a data provider for an
    mx:ComboBox. Here's how I have my HTTPService configured:
    <mx:HTTPService id="listStates" url="
    http://localhost:3006/state/list"
    useProxy="false" method="GET" />
    I have a Rails backend setup and talking to a database on my
    local machine. I have a list of states in a table in my database,
    and the table has two columns: id and name. When I go to
    localhost:3006/state/list in my browser, I get the following XML:
    <states>
    <state>
    <id type="integer">1</id>
    <name>New Mexico</name>
    </state>
    <state>
    <id type="integer">2</id>
    <name>Arizona</name>
    </state>
    </states>
    I have my mx:ComboBox set up like so:
    <mx:ComboBox width="199" id="state" dataProvider="{
    listStates.lastResult.states.state }" />
    However, when I browse to my .swf file, my state combo box
    shows [object Object] twice in the drop-down list. Anyone have any
    idea why it's not parsing the data correctly? Any suggestions on
    how to make it work?
    Thanks in advance!!! -- BTR

    Alright I worked one out for you. Let me know if you have any
    questions.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute"
    creationComplete="dropDown.send()">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    import mx.collections.ArrayCollection;
    import mx.controls.Alert;
    public var dropArr:XML;
    public function get_drop_down(e:ResultEvent):void{
    dropArr = e.result as XML;
    state.dataProvider = dropArr.state;
    state.labelField = "name";
    state.data = "id";
    ]]>
    </mx:Script>
    <mx:HTTPService id="dropDown" useProxy="false"
    url="
    http://localhost/dropDown.php"
    resultFormat="e4x"
    result="get_drop_down(event)" />
    <mx:ComboBox width="199" id="state" />
    </mx:Application>

  • Error using an XML as data provider for either datagrid or linechart

    Hi,
    I am developing an application using Flex and Java servlets.
    Upon user
    event, I load the data using the servlet and store the data
    in a
    Dictionary. I am running into couple of issues from here
    a. If I try to use the XML object in the dictionary as the
    data provider
    for either Datagrid or Linechart I am unable to view the
    data. I did a
    trace on the object and it has the correct data.
    b. Also, I am unable to access the content of child elements
    when using
    a parent element as the data provider.
    ex. parent. child1. child2 does not work, it works when I
    provide child2
    as the dataprovider directly.
    Please let me know what might be the root causes and
    resolutions.
    Thanks in advance,
    Nataraj

    I did not find a solution to the problem and created a list
    of the child objects and used that as the source instead of the top
    level XML object. This worked.

  • Wayland backend per user for Gnome Shell?

    Hello, I've been trying to set environment variable with Wayland backend for Gnome Shell on Wayland but this per user just doesn't work.
    I tried to put:
    export GDK_BACKEND=wayland
    export CLUTTER_BACKEND=wayland
    to files like .profile and .bashrc but Gnome Shell doesn't tolerate these two. Without Wayland backend everything just run in XWayland "mode".
    Weston tolerate this backends but it is highly "underfetaured" and sometimes it's just crash (some breakpoint trap).
    Any response appreciated.

    I have had a brief look and I think there may be a way in to add/change things via .desktop files.  It looks like whenever gnome loads a .desktop type file it should look in $XDG_CONFIG_HOME home which, by default, would be $HOME/.config first before loading it from one of the standard system directories.  The standard session definitions are desktop files (though with a .session extension) so putting a copy on $HOME/.config should enable user specific reconfiguration.

  • Using a Web Service as a data provider for a Crystal Report

    <p>I&#39;m trying to write a Crystal Reports XI report that uses a Web Service as the data provider.  I have a Web Service written in ColdFusion that looks like this.<br /><br /><cfcomponent displayName="FindEmployee" ><br />   <cffunction name="FindEmployeeSort" access="remote"          <br />               returnType="xml" output="false"><br />      <cfdump var=form><br />      <cfset myXML = ""><br />       <!--- FindEmployeeSort body ---><br />       <cfquery name="EmployeeQuery" datasource="Production"><br />           Select * from employee<br />          <cfif isdefined(&#39;form.lastname&#39;)><br />             WHERE lastname LIKE &#39;%#form.lastname#%&#39; <br />          </cfif><br />           Order by lastname asc <br />        </cfquery><br />     <cfreturn EmployeeQuery>  <br />   </cffunction><br /></cfcomponent><br /><br />I can get the web service to work from a ColdFusion page (either locally or on a remote server).</p><p>When I try to create the CR data source, I get the following error:</p><p>Crystal Reports<br />! Logon Failed.<br />Details: Cannot find correspondign table information in the XML file</p><p>The steps I took were:<br />* Choose XML from the "Avalable Data Sources"<br />* Choose "Use Web Service Data Source"<br />* Choose "Use HTTP(S) WSDL" with a url of <a href="http://host/directory/FindEmployee.cfc?wsdl">http://host/directory/FindEmployee.cfc?wsdl</a><br />* Leave the "HTTP(S) Web Service User ID:" and "HTTP(S) Web Service Password:" parameters blank<br />* Accept the defaults for Services, Ports, and Methods.  They are respectively FindEmployee, FindEmployee.cfc and FindEmployeeSort.<br />* Then get the error</p><p>The most likely candidate to me is the user id and password, but I have no idea what to use.  I didn&#39;t have to set any login information up in the ColdFusion pages that I used to test the Web Service.</p><p>Any ideas where to go from here?</p><p>Thanks,</p><p>Brian</p>

    Please re-post if this is still an issue to the Java Development - Crystal Reports Forum or purchase a case and have a dedicated support engineer work with you directly

  • Oracle Data Provider for Oracle 10g

    We have an application certified on the ODP 9.2.0.2102, Oracle Client and Oracle ODBC 9.2.0.6. We have a client who is moving to Oracle 10g client within the next few months but will still be hitting an Oracle 9.2 backend.
    My question is: Is the 9.2.0.2102 ODP compatible with the 10g client, or do we need to certify against a newer version of the ODP? And if the latter, what version of ODP is recommended?
    We plan to certify against the latest of both this year, but for now, we need the path of least resistence.
    Thanks for your help.
    Todd

    It is not "hard" to create your own geocoding schema though you will need to know how to create tables (with Oracle Spatial columns) in Oracle and before you do create the tables you should read through the documentation to be certain you have all of the required data and metadata.
    Navteq, a data provider, also has sample geocoding data (http://www.oracle.com/technology/products/spatial/htdocs/spatial_partners_data.html) as well as data for sale. Downloading and importing the Navteq data might give you a good idea about what you will need to do if you were to build your own geocoding schema using your data.
    I hope this helps.
    -Justin

  • Mailnag for gnome-shell mail notifier

    Hi,
    i already asked in the desktop section how to run the code (python) but i cannot manage to run! So i ask kindly if it is possible to have this 'extension' as a package on aur.
    It's a gnome-shell notifier email in which by using evolution (maybe thunderbird) to reply mail directly from the gnome-shell popup window.
    https://launchpad.net/mailnag
    Thanks in advance
    Last edited by techmagyor (2011-06-01 17:34:51)

    I just got mine working it seems like there is an other sneaky dependency, as the script depends on aplay from alsa-utils to play a notification sound. After installing alsa-utils, everything worked.
    For your problem: I don't really know about the differences between gmail and googlemail, but try to replace ****@gmail.com with ****@googlemail.com. If you are from the UK or Germany, you could be affected by this: http://mail.google.com/support/bin/answ … wer=165761
    Edit: By your request, my python packages (I'm using testing on my laptop, if that matters):
    dbus-python 0.83.1-2
    gstreamer0.10-python 0.10.21-1
    mlt-python-bindings 0.7.2-1
    mutagen 1.20-3
    pygobject 2.28.4-1
    pygoocanvas 0.14.1-3
    pygtk 2.24.0-1
    pygtksourceview2 2.10.1-3
    python 3.2-2
    python2 2.7.1-9
    python2-cairo 1.10.0-1
    python2-distribute 0.6.16-1
    python2-gconf 2.28.1-7
    python2-gtkspell 2.25.3-9
    python2-httplib2 0.6.0-4
    python-gnomekeyring 2.32.0-6
    python-imaging 1.1.7-3
    python-notify 0.1.1-10
    pyxdg 0.19-2
    pyxml 0.8.4-8
    2. Edit: Looking at the source code, it seems like it tries ssl by default and then falls back to non-ssl in case of failure.
    3. Edit: I extracted the code that causes your error into a standalone script. Invoke it with python2 for further investigations.
    print "Importing imaplib..."
    import imaplib, sys
    port = 993
    server = "imap.gmail.com"
    print "Attempting to connect via SSL to " + server + ":" + str(port) + "..."
    try: srv = imaplib.IMAP4_SSL(server, port)
    except:
    print "Connection failed. Falling back to non-SSL"
    try: srv = imaplib.IMAP4(server, port)
    except:
    print "Connection failed. Exiting."
    sys.exit()
    print "Connection established on " + str(srv) + ".\nClosing now. "
    srv.logout()
    print "Finished."
    Last edited by Wey (2011-06-04 21:56:30)

  • Error Calling Data Provider for Return PO in Me21N Message Number FES011

    Hi Experts,
    I am trying to create a Return PO using ME21N. Im giving all the parameters and values. But While saving its generating an Error.
    it states "Error calling Data Provider".
    Message No. FES011
    What could be the possible error . Any clues?
    Thanks and Regards,
    Selvakumar. M

    hi,
    Check with the Basis consultant....actually Data provider deals with the database..Also sometimes when the data provider doesnot provides the data...the error doesn't reach....
    Pls check with the BASIS consultant....the netweaver part could be checked by ABAP consultant...
    Also check the links:
    http://msdn.microsoft.com/en-us/library/bb508810(SQL.90).aspx
    http://help.sap.com/saphelp_nwpi71/helpdata/en/11/e8179b247e4720882512a04041491d/frameset.htm
    http://sapnetweavernotes.blogspot.com/2008/04/sap-earlywatch-alert.html
    Hope it helps....
    Regards
    Priyanka.P

  • Need help coneverting data provider for inline fx:Component renderer for a datagrid

    I want to use an existing inline item renderer and point the hard coded data provider to an arraycollection, which comes from a database.
    At firt glance this looks easy, just change
    <fx:Declarations>
      <fx:Component id="inlineEditor">
       <mx:ComboBox >
        <mx:dataProvider>
         <fx:String></fx:String>
         <fx:String>AIG</fx:String>
         <fx:String>BHN</fx:String>
         <fx:String>FH</fx:String>
         <fx:String>LM</fx:String>
         <fx:String>SD</fx:String>
        </mx:dataProvider>
       </mx:ComboBox>
      </fx:Component>
    </fx:Declarations>
    TO
    <fx:Declarations>
      <fx:Component id="inlineEditor">
       <mx:ComboBox
        dataProvider="{outerDocument.wripAttachTypeAc}"
        labelField="WRIP_ATTACHED_FILE_TYPE_DESC">
       </mx:ComboBox>
      </fx:Component>
    </fx:Declarations>
    BUT that does not work the data grid produces the object.object value as theres no association to the labelField . Can anyone see what I am doing wrong. The datagrid entry is
    <mx:DataGridColumn dataField="Permit File"
              width="150"
              editorDataField="selectedItem"
              itemEditor="{inlineEditor}"/>

    Thanks Harui, but it doesn't help. If the border is set it will help, but the very big problem is the empty rows that appear at the end of the datagrid... I can't find a way of measuring correctly the height of the itemRenderers!
    I'll update this thread if I manage to do it.

  • Error Installation Data Provider for Net

    When I am installing to the moment of the configuration this mistake happens and Net Manager does not allow to initiate
    Line parameters of incorrect commands
    parts from the software based on the work of independent JPEG Group

    hi,
    Check with the Basis consultant....actually Data provider deals with the database..Also sometimes when the data provider doesnot provides the data...the error doesn't reach....
    Pls check with the BASIS consultant....the netweaver part could be checked by ABAP consultant...
    Also check the links:
    http://msdn.microsoft.com/en-us/library/bb508810(SQL.90).aspx
    http://help.sap.com/saphelp_nwpi71/helpdata/en/11/e8179b247e4720882512a04041491d/frameset.htm
    http://sapnetweavernotes.blogspot.com/2008/04/sap-earlywatch-alert.html
    Hope it helps....
    Regards
    Priyanka.P

  • Little help with complex XML data as data provider for chart and adg

    Hi all,
    I've been trying to think through a problem and Im hoping for
    a little help. Here's the scenario:
    I have complex nested XML data that is wrapped by subsequent
    groupings for efficiency, but I need to determine if each inner
    item belongs in the data collection for view in a data grid and
    charts.
    I've posted an example at the bottom.
    So the goal here is to first be able to select a single
    inspector and then chart out their reports. I can get the data to
    filter from the XMLListCollection using a filter on the first layer
    (ie the name of the inspector) but then can't get a filter to go
    deeper into the structure in order to determine if the individual
    item should be contained inside the collection. In other words, I
    want to filter by inspector, then time and then tag name in order
    to be able to use this data as the basis for individual series
    inside my advanced data grid and column chart.
    I've made it work with creating a new collection and then
    looping through each time there is a change to the original
    collection and updating the new collection, but that just feels so
    bloated and inefficient. The user is going to have some buttons to
    allow them to change their view. I'm wondering if there is a
    cleaner way to approach this? I even tried chaining filter
    functions together, but that didn't work cause the collection is
    reset whenever the .refresh() is called.
    If anyone has experience in efficiently dealing with complex
    XML for charting purposes and tabular display purposes, I would
    greatly appreciate your assistance. I know I can get this to work
    with a bunch of overhead, but I'm seeking something elegant.
    Thank you.

    Hi,
    Please use the code similar to below:
    SELECT * FROM DO_NOT_LOAD INTO TABLE IT_DO_NOT_LOAD.
    SORT IT_DO_NOT_LOAD by WBS_Key.
        IF SOURCE_PACKAGE IS NOT INITIAL.
          IT_SOURCE_PACKAGE[] = SOURCE_PACKAGE[].
    LOOP AT IT_SOURCE_PACKAGE INTO WA_SOURCE_PACKAGE.
            V_SYTABIX = SY-TABIX.
            READ TABLE IT_DO_NOT_LOAD into WA_DO_NOT_LOAD
            WITH KEY WBS_Key = WA_SOURCE_PACKAGE-WBS_Key
            BINARY SEARCH.
            IF SY-SUBRC = 0.
              IF ( WA_DO_NOT_LOAD-WBS_EXT = 'A' or WA_DO_NOT_LOAD-WBS_EXT = 'B' )     
              DELETE IT_SOURCE_PACKAGE INDEX V_SYTABIX.
            ENDIF.
    ENDIF.
          ENDLOOP.
          SOURCE_PACKAGE[] = IT_SOURCE_PACKAGE[].
        ENDIF.
    -Vikram

  • SQL Server Compact data provider for EF does not support some Entity SQL canonical functions

    I would like to get some comments on this issue:
    http://connect.microsoft.com/SQLServer/feedback/details/812735

    Dennis,
    Yes, I meant the CodePlex tracker for EF. As the code you are talking about is in the EF codebase, not in the SQLCE codebase. I had a closer look, and I think that Contains and StartsWith can be made to work based on the SQL Server implementation. And EndsWith
    should at leats report "Not supported" instead of generating failing T-SQL.
    Do not expect any changes to the SQLCE engine but the SQLCE EF provider code is fully supported by the team, I would imaging also to prove that EF is not SQL Server only.
    BUT - in order to priovide a fix, which could be included in EF 6.1, PLEASE provide a simple repre project/unit tests with some failing ESQL code in it, I could end up contributing the fix, but do not know anything about ESQL.
    I regularly contribute mainly SQLCE provider related fixes, and the EF team is very receptive to those, so I think there is a REAL chance of getting it fixed.
    Please mark as answer, if this was it. Visit my SQL Server Compact blog http://erikej.blogspot.com

  • [Gnome-shell] Desktop freezes when Samba shares become unavailable

    Hi,
    I'm experiencing a very annoying problem on the laptop I use at work. I'm using an up-to-date Arch with Gnome-shell and we have a bunch of network shares on several servers.
    I access them via Nautilus and everything's fine as long as I don't unplug the cable. If I do that while Samba shares are mounted in Nautilus (through GVFS), the entire desktop freezes and I have to restart GDM to get it back (but all applications are killed and that's not cool).
    I also realized that when I mount a Samba share I'm accessing through a personal VPN (so, through the Internet), the entire desktop becomes slow and choppy. If I transfer a file to the remote folder using Samba over this VPN, I cannot do anything until the transfer is finished. During this time the desktop is freezed. But after that I get it back and it's working again (but is still slow as long as I keep the share folder mounted).
    When I unmount the "slow" Samba shared folder, everything works perfectly.
    Why is Gnome so dependent on such thing as a simple mounted shared folder? Is there a way to prevent this behaviour?
    Thanks in advance

    Hi nanawel, i've a very similar problem to your on my home machine: this (https://bbs.archlinux.org/viewtopic.php?pid=1196319) is the thread i found when researching my problem, so i started investigating it and then discovered the samba shares problem, so i found out your problem when looking up for similar annoyances in Google.
    Have you been able to track it down?
    As i said in the other thread, i don't have installed any of those gnome-shell extensions, but i have the TweakTool->Desktop option named "Show mounted volumes on the desktop" enabled, as well as an entry in my /etc/fstab file: tomorrow i'm going to have some tries with my brother's pc and see if i can find out something more.. i'll keep posting on this thread then, since it looks like my problem is very very similar.. hopefully we'll be able to track it down this beast.
    But also, I'm also experiencing that "slow network share/choppy desktop" on my work machine only: it looked like a FUSE issue, but could never debug that since i've a quite important deadline at work and can't start debugging my OS during working hours
    Anatolik was kind enough to chime in and suggest to debug it (https://bbs.archlinux.org/viewtopic.php … 7#p1193437), this is the thread about it.

  • Query View name not saved in "Analysis Grid Properties" under Data Provider

    Hi BW World;)
    We are on BI 7.0
    I have created a BI workbook which contains a query view.
    However when we go into design mode and then "analysis grid properties" for this query view then "change data provider" it does not show the query view name but the query name. (we have saved the workbook)
    Is this the normal scenario?
    Surely should show the "query view name " and not the "query name" as confuses what data provider is being used?
    Is this a bug?
    Best
    Stevo.... Points of course... Thanks in advance.;)
    Edited by: bw4eva999 on Sep 10, 2009 4:40 PM     spelling

    Hi,
    You have created a workbook on top of a Query View which is again depends on a Query.Now the base for Query View is a Query.So the underlying Data Provider for a workbook is a Query.
    Hence when you go to Properties of grid->Change Data Provider,it shows the Query and the InfoCube,but not the Query View.
    So this is not a bug and this how its been designed.
    If you click for the Information of that workbook,it will show the Query and Info Provider,but not the query View.
    Though it looks like wierd,it is not a bug.
    Rgds,
    Murali

Maybe you are looking for

  • Problem to get glyph vector's shape

    Some Chinese fonts(TrueType) were created from embeded font files in a PDF file and glyph vectors were successfully generated. But when calling the glyph vector's getOutline() to get the shape of the vectors, the program crashed and got the following

  • Deploying a JNLP file to corporate users?

    When it comes to Java, I'm pretty clueless. I was a VB programmer years ago, and now I deal mostly with Python apps. I have a corporate client with ~80 workstations. One of their primary business applications is deployed by a jnlp file. Their tech su

  • How to Use getDBTransaction() in Controller Class

    I am using the below code.      OADBTransaction tx = (OADBTransaction)getDBTransaction();                          java.sql.Connection pConncection = tx.getJdbcConnection();                ConcurrentRequest cr = new ConcurrentRequest(pConncection); B

  • IOS 8.02 Problem

    I recently updated my IPad to IOS 8 and just yesterday to 8.02.  I use my iPad daily in my job and now after updating to 8.02 I am no longer able to log into my portal account on my college website.  The only way for me to access my online classes, e

  • Making a credit note

    hi, there are two line items in the final invoice and the client now wants to make a credit note in such a way that for the first line item in the invoice she wants to give complete credit and for the second line item she wants to give partial credit