Re: Trouble finding GIR constructor for Soup.Cookie





On Sat, Jul 23, 2011 at 2:55 PM, Ricardo Gladwell <ricardo gladwell gmail com> wrote:
Hi

Thanks for the tip, that seemed to eliminate the problem.

Is *.prototype a common feature of most GIR objects? What does it mean?


.prototype is just common js stuff, this is where you place the "default" members of a js object (i.e. prototype) and so I guess this is where they place static functions~~~
 
don't think gir is complete because I have to make a lot of this kind of guess these days~~~~, which is annoy. both in js and python~~~

Yichao


TIA...

--
Ricardo Gladwell <ricardo gladwell gmail com>
http://www.google.com/profiles/ricardo.gladwell
Twitter: @rgladwell - MSN: axonrg gmail com

On 07/23/2011 03:31 PM, 俞颐超 wrote:
know nothing about soup but this seems work

Soup.Cookie.prototype.new('SID', '', '.google.com <http://google.com>',

'/', -1)

On Sat, Jul 23, 2011 at 8:39 AM, Ricardo Gladwell
<ricardo gladwell gmail com <mailto:ricardo.gladwell@gmail.com>> wrote:

   Hi Guys

   Sorry to bump, but can anyone help with this? Or should I raise a big?

   TIA...

   --
   Ricardo Gladwell <ricardo gladwell gmail com
   <mailto:ricardo.gladwell@gmail.com>>    Twitter: @rgladwell - MSN: axonrg gmail com <mailto:axonrg gmail com>


   On 17 July 2011 12:51, Ricardo Gladwell <ricardo gladwell gmail com
   <mailto:ricardo.gladwell@gmail.com>> wrote:
    > Hi Florian,
    >
    > Thanks for the feedback.
    >
    > On 07/17/2011 12:47 PM, Florian Max wrote:
    >>
    >> Maybe you forgot to import the soup namespace?
    >
    > I can successfully call and use other Soup objects, for example the
    > following executes successfully without error in the same source
   file:
    >
    > let message = Soup.Message.new('GET',
    > "https://www.google.com/accounts/ClientLogin?service=reader");
    >
    > I make the following declaration earlier:
    >
    > const Soup = imports.gi.Soup;
    >
    > Regards...
    >
    > --
    > Ricardo Gladwell <ricardo gladwell gmail com
   <mailto:ricardo.gladwell@gmail.com>>     > Twitter: @rgladwell - MSN: axonrg gmail com <mailto:axonrg gmail com>

    >
   _______________________________________________
   gnome-shell-list mailing list
   gnome-shell-list gnome org <mailto:gnome-shell-list@gnome.org>
_______________________________________________
gnome-shell-list mailing list
gnome-shell-list gnome org
http://mail.gnome.org/mailman/listinfo/gnome-shell-list



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]