Arie Kusuma Atmaja | 7 Sep 09:46
Picon
Gravatar

Please help : wee movies

Hello guys,
I tried to download wee tutorial movies from my azureus, but nobody
there... sad. sigh..

my azureus screenshot can be seen here :
http://www.geocities.com/riyari3/wee_tutorial.png

anybody has placed it in other places? so that i can download it
through port 80 ? or send those tutorial movies to my email (
ariekusumaatmaja <at> gmail.com ) would also be fine.

BTW How's this wee project progress? Hope can be cool like Seaside ;-)
and still in Ruby World...

Thanks b4.

--

-- 
Name  : Arie Kusuma Atmaja, A.K.A Arie, A.K.A ariekeren / YM! = riyari3
http://ariekusumaatmaja.wordpress.com
Let's build Ruby Indonesia stronger
http://groups.yahoo.com/groups/id-ruby
jf | 1 Sep 01:23
Picon

Wee in the World

Hello,
I'm new to the mailing list and I was wondering if anyone out there is using Wee in any real projects.  I know development may be inactive at this point, but it still seems to be an impressive framework.  I've used Rails on several projects, but there are times when I feel like Wee, or another component framework, may be more appropriate.

Thanks,
Justin

_______________________________________________
Wee-talk mailing list
Wee-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/wee-talk
Mike | 13 Jun 23:22
Gravatar

How is this line of seaside code done in wee

Hi,

Here is a line of seaside code that renders a link that, when 
clicked, calls a block of code on the server using ajax:

r anchorWithAction:[] liveAction: [ :renderer | self renderTimeOn: 
renderer ] text: ‘Update’.

I know that something similar can be done with wee like this:

p = proc {render_method_invoke(method)}
r.anchor.onclick_update(method.name, p).with(method.name)

However, in the seaside case, the block that is called once the 
link is clicked is given a renderer or canvas with which it can 
render a reply.  Is there any way to get wee to provide a new 
renderer or canvas to blocks that are called through callbacks?

Thanks very much.
Mike.

Receive and share.
_______________________________________________
Wee-talk mailing list
Wee-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/wee-talk
Reid Thompson | 6 Apr 01:02
Favicon

Is there a Mechanize list?

Is there a Mechanize mailing list?

I'd like to learn to use mechanize to scrape some data for input into 
PostgreSQL via og.  And I'm running into some lack of 
knowledge/understanding on my part.
zimba.tm | 27 Mar 19:04
Picon

Mongrel adapter

Hi list,

attached, you will find a mongrel adapter.

== Usage
#!/usr/bin/env ruby
require 'wee/adaptors/mongrel'

# Your application
require 'hello_world'

h = Mongrel::HttpServer.new('0.0.0.0', 2000)
h.register('/app', Wee::MongrelAdaptor.new('/app', 
HelloWorldApplication.new()))

h.register('/media', Mongrel::DirHandler.new('/path_to/media'), false)) # 
false disables dir-listing

trap("INT") { h.stop }

h.run
puts "Server started on 
#{h.instance_variable_get('@host')}:#{h.instance_variable_get('@port')}"
h.acceptor.join

--

-- 
Cheers,
  zimba.tm

weblog : http://zimba.oree.ch
Attachment (mongrel.rb): application/x-ruby, 1231 bytes
_______________________________________________
Wee-talk mailing list
Wee-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/wee-talk
zimba.tm | 17 Mar 19:27
Picon

Corrected version of OgScaffolder

Hi list,

you can find attached, a corrected version of the OgScaffolder class that 
works with the last version of Og (0.29.0)

--

-- 
Cheers,
  zimba.tm

weblog : http://zimba.oree.ch
Attachment (scaffolder.rb): application/x-ruby, 5415 bytes
_______________________________________________
Wee-talk mailing list
Wee-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/wee-talk
zimba.tm | 17 Mar 11:06
Picon

First contribution : Wee::HtmlPrettyWriter

Hi list,

I'm really happy with Wee. Lots of things are still obscure but it has a great 
potential. Especially, the architecture is really nice and I have a good 
feeling :-)

Here is my first contribution to the Wee project. It's an extension of the 
HtmlWriter which will indent the code. It's not perfect yet. I need more html 
to test all the cases, etc..

== Usage

Build your own session and re-implement the respond method.

class MySession < Wee::Session
    def respond(context, callbacks)
      pre_respond_hook
      set_response(context, Wee::GenericResponse.new('text/html', ''))
      rctx = Wee::RenderingContext.new(context, callbacks, 
Wee::HtmlPrettyWriter.new(context.response.content))
      @component_runner.render(rctx)
    end
  end
end

--

-- 
Cheers,
  zimba.tm

weblog : http://zimba.oree.ch
Attachment (pretty_writer.rb): application/x-ruby, 674 bytes
_______________________________________________
Wee-talk mailing list
Wee-talk <at> rubyforge.org
http://rubyforge.org/mailman/listinfo/wee-talk
zimba.tm | 16 Mar 21:53
Picon

Form submission

Hi list,

thanks Michael for your previous answer. Now I'm starting to play with Wee and 
I have tons of questions that raise up :-p

I would like if possible, to have some hints on two things :
* how to get the values from the two input boxes. In all examples, I've only 
seen single input submits.
* how to store the data so that it's accessible from other components or 
decorators ?

To start, I have used the ComponentDispatcher to build different pages (it 
seems bugged but I have to investigate on this). I now have a simple page 
that shows up pretty well.

I then wanted to add authentication to the application. So I implemented the 
LoginDecoration like specified in the source code and created another 
component to work with.

As you can see below, it will certainly shows that I didn't grasp all the 
philosophy yet. I have just included the two concerned pages as the rest 
seems to work pretty well.

==== snip ====
class ProVision::Page::Login < Wee::Component
  attr_reader   :user
  attr_accessor :username
  attr_accessor :password

  def render
    r.h1 "Login : " + @wesh.to_s
#    r.text.class('error').with { @error }
    r.form.action(:login).with do
      r.text "login : "
      r.text_input.value(@username).callback { |v| username = v }
      r.break

      r.text "password : "
      r.text_input.value(@password).callback { |v| password = v }
      r.break

      r.submit_button.value("login").callback { login }
    end
  end

  def login
    if user = User.find_by_username(@username) and user.password == 
user.crypt_password(@password)
      @user = user
    else
      @error = "Unable to login"
    end
  end

  def logout
    @user = nil
  end

  def logged_in?
    not @user.nil?
  end
end

class ProVision::Decoration::Login < Wee::LoginDecoration
  def logged_in?
    @login_page.logged_in?()
  end
end
==== snip ====

--

-- 
Cheers,
  zimba.tm

weblog : http://zimba.oree.ch
zimba.tm | 15 Mar 17:32
Picon

Wee repo ?

Hi list,

is there a repository where I can get the latest wee source ? The rubyforge's 
CVS is empty.

--

-- 
Cheers,
  zimba.tm

weblog : http://zimba.oree.ch
Mike Pence | 23 Sep 22:51
Picon
Gravatar

Wee looks cool...

Is it still under active development? Stable enough to use for
real-world web development?

Thanks!
Mike ence
Aleksi Niemela | 19 Jul 23:06
Picon
Picon
Favicon

Place for logging

I'm sure there's some perfect place to inject page traversing logging 
among other important activities logging. But where would it be best?

If I'd use ComponentDispatcher that would be obvious place, but perhaps 
I should attach to rendering loop and push important event to the log 
from there?

    - Aleksi

Gmane